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.