Forums / Install & configuration / Getting rid of index.php

Getting rid of index.php

Author Message

Ammar Ibrahim

Monday 13 November 2006 11:31:16 pm

I have setup a new eZ Publish (3.8) on a LAMP stack. I have configured mod_rewrite and everything, I'm still getting index.php in the URLs. How can I get rid of it?

Nabil Alimi

Tuesday 14 November 2006 7:05:33 am

Hi Ibrahim,

Have you configured your ezpublish installation to run in virtual host mode ?

http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/configuration/access_methods

:-)

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Ammar Ibrahim

Wednesday 15 November 2006 4:36:16 am

yes :)

I have two URLs, e.g:

user.example.com for the user side
admin.example.com for the admin side

Michael Maclean

Wednesday 15 November 2006 4:52:49 am

If your rewrite rules are OK, you might need to add:

ForceVirtualHost=true

underneath

[SiteAccessSettings]

in settings/override/site.ini.append.php. After clearing the caches the URLs will be generated without index.php.

eZpedia community documentation project | http://ezpedia.org

Ammar Ibrahim

Wednesday 15 November 2006 6:05:45 am

Thanks, it worked

Alexandre Cunha

Saturday 18 November 2006 3:44:55 am

If your rewrite rules are OK, you might need to add:
ForceVirtualHost=true

underneath

[SiteAccessSettings]

in settings/override/site.ini.append.php. After clearing the caches the URLs will be generated without index.php.

Thanks for this usefull tips ! I've now the site running without "index.php?". But now I have a new trouble: all external links (google, etc) to the site have "index.php?" on the URL and following tis links the site show "index.php module not not found".

How can I trick the .htaccess to accept and "clean" the urls ?

thanks

http://AlexandreCunha.com