I have the following issue with a website built upon Zend that I can't fix: The website that I am editing (not coded by me) has the following link structure: http://www.site.tld/controller/action
However, I want to get rid of the controller name on links and I can't get it to work. For example, when I click on "Link1" I want to get http://www.site.tld/Link1
I have the following file structure
application
library
public
trial
.htaccess
index.php
The .htaccess in the public folder has the following contents:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
If it is helpful, I also observe that each action in the index controller makes use of
$this->_redirect('/index/action');
I tried rewriting the .htaccess file but in vain. It basically didn't point to the physical index controller. Please advise.
Thank you!