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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:41:14
Script start
Timing: Jan 18 2025 11:41:14
Module start 'layout'
Timing: Jan 18 2025 11:41:14
Module start 'content'
Timing: Jan 18 2025 11:41:15
Module end 'content'
Timing: Jan 18 2025 11:41:15
Script end

Main resources:

Total runtime0.6905 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9375152.6250
Module start 'layout' 0.00690.0045 740.562539.4453
Module start 'content' 0.01150.6775 780.0078632.2344
Module end 'content' 0.68900.0015 1,412.242212.1641
Script end 0.6905  1,424.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.7058160.0003
Check MTime0.00160.2252160.0001
Mysql Total
Database connection0.00110.163210.0011
Mysqli_queries0.626890.7664700.0090
Looping result0.00070.1079680.0000
Template Total0.647593.820.3237
Template load0.00330.482920.0017
Template processing0.644193.281520.3221
Template load and register function0.00020.023310.0002
states
state_id_array0.00100.144110.0010
state_identifier_array0.00140.200620.0007
Override
Cache load0.00290.4188280.0001
Sytem overhead
Fetch class attribute can translate value0.00100.147040.0003
Fetch class attribute name0.00110.157570.0002
XML
Image XML parsing0.00080.122540.0002
class_abstraction
Instantiating content class attribute0.00000.001970.0000
General
dbfile0.00090.1358160.0001
String conversion0.00000.002540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs