how to remove index.php from links, site works without it

Author Message

Vytautas Germanavičius

Wednesday 19 October 2005 11:18:44 pm

I changed ISP. After i moved site to another provider, my site stoped to work.
all links on my site are "/index.php/forum/....", but server shows page oly if i write "/forum/....".

Where to turn off adding of "index.php" to all links?

{set-block scope=root variable=cache_ttl}0{/set-block}

Marko Žmak

Thursday 20 October 2005 10:52:04 am

As far as I know eZ it's not entirely possible. ezurl always puts index.php in links.

One sollution is to use the ezroot like described in the doc:

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_operators/urls/ezroot

but this operator also ommits the siteacces name, so it will work only for the default siteaccess.

A suggestion to the eZ team:

Could you modify the ezroot operator so that it can take an agument wether to include the siteacces name in the output or not. It would be really neat, and all the people using eZ could have all their sites with nice links without index.php in it (provided that they set the appropriate apache rewrite settings).

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Xavier Dutoit

Friday 21 October 2005 3:49:35 am

I remember having seen a forcevirtualhost or a param like that in the .ini

Search around that, I have never tried it myself, but might be what you want... and keep us informed ;)

X+

http://www.sydesy.com

Sander van den Akker

Thursday 27 October 2005 1:55:40 am

In the 3.6.3 changelog it is mentioned library support was added for virtual host mode in a subdir.

how do I implement this?

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

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 19 2025 04:44:28
Script start
Timing: Jan 19 2025 04:44:28
Module start 'layout'
Timing: Jan 19 2025 04:44:28
Module start 'content'
Timing: Jan 19 2025 04:44:29
Module end 'content'
Timing: Jan 19 2025 04:44:29
Script end

Main resources:

Total runtime0.7228 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 590.8828152.6563
Module start 'layout' 0.00550.0030 743.539139.4922
Module start 'content' 0.00850.7127 783.0313641.0547
Module end 'content' 0.72130.0015 1,424.085912.0938
Script end 0.7228  1,436.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4353160.0002
Check MTime0.00130.1826160.0001
Mysql Total
Database connection0.00080.109610.0008
Mysqli_queries0.666592.2113640.0104
Looping result0.00070.0957620.0000
Template Total0.694896.120.3474
Template load0.00180.253420.0009
Template processing0.693095.874520.3465
Template load and register function0.00010.011510.0001
states
state_id_array0.00090.126210.0009
state_identifier_array0.00090.119820.0004
Override
Cache load0.00150.2078240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.093140.0002
Fetch class attribute name0.00090.126080.0001
XML
Image XML parsing0.00210.286540.0005
class_abstraction
Instantiating content class attribute0.00000.001280.0000
General
dbfile0.00120.1660370.0000
String conversion0.00000.003640.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs