I have enabled enabled mod_rewrite and have the following in httpd.conf:
<Directory />
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
I have set up an alias to point to the public folder in the project 127.0.0.1/whatford/
But i still have to prefix my url with index.php to access other controller/views example = 127.0.0.1/whatford/index.php/contact – instead of 127.0.0.1/whatford/contact ?
Any help would be appreciated thanks
I use this :
$_SERVER["REQUEST_URI"] = str_replace('index.php','',$_SERVER["REQUEST_URI"]);added to the top of my index.php to get rid of the index.php in the url.
also check out this Vhost in Zend Server, following along with this post you can make sure your apache setup is correct for ZF, even if you don’t setup a full Vhost.