Share » Forums » Install & configuration » How to use .htaccess to remove...

How to use .htaccess to remove index.php from URL?

How to use .htaccess to remove index.php from URL?

Friday 13 November 2009 1:35:58 am - 3 replies

Author Message

Gaetano Giunta

Friday 13 November 2009 4:10:06 am

If you're using the stock .htaccess file from eZP install, you need to comment out the first 2 FilesMatch directives to make it work in 'vhost mode':

#<FilesMatch ".">
#order allow,deny
#deny from all
#</FilesMatch>

#<FilesMatch
"(^index\.php|favicon\.ico|index_treemenu\.php|\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$">
#order allow,deny
#allow from all
#</FilesMatch>

This should have the exact same effect as uncommenting the 3rd configuration block, which is recommended by the comments within the .htaccess file itself...

Principal Consultant International Business
Member of the Community Project Board

Eivind Marienborg

Friday 13 November 2009 6:35:19 am

Thanks for your reply. Doing like you say removes the error messages, but if I try to access any page (without index.php in the URL), the home/root page is displayed.

So, one step forward, but I'm still not quite where I want to be.. :)

Rakshit Patel

Wednesday 23 December 2009 11:49:30 pm

Here is a solution to rmove index.,php from URLs. This works for me.

http://bit.ly/4nz3nZ

Rakshit Patel.
http://www.programmingfacts.com/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu