Forums / Install & configuration / ezurl, ezroot and index.php behaves differently after moving to new server

ezurl, ezroot and index.php behaves differently after moving to new server

Author Message

Mark Marsiglio

Tuesday 02 November 2004 4:55:56 am

When I develop eZ sites on my local webserver, my sites never show index.php, and all of my code uses ezurl instead of ezroot. I assume this is because of my apache config. However, when I switch to my hosting provider's server, the same site then shows the /index.php in the url unless i replace all of the occurrances of ezurl in the code with ezroot. The problem is, I cannot do this for all instances with creating lots of new overrides because the templates in the base and standard design folders use ezurl.

Is there another way to get this to work without making this change? The admin side also does not work when I replace ezurl with ezroot (the design changes to my public side design), so I seem to be stuck with the index.php there.

Any ideas why this would be different on the two servers, which otherwise are installed and configured the same way (eZ pub configuration, not necessarily apache or php config).

Thanks
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Brendan Pike

Tuesday 02 November 2004 5:20:18 am

This happens when .htaccess is used as the rewrite rule vehicle. I'm not aware of any workaround other than replacing ezurl/ezroot. But there shouldn't be too many instances on your user site, admin is a different story and I have not bothered removing the index.php from the path for admin access.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Mark Marsiglio

Tuesday 02 November 2004 6:11:55 am

So the difference would be that I am using an .htaccess file for rewrite at the hosting provider, but a modified httpd.conf on my local server? That would make sense, but I am sure that I would have never been able to figure that out...thanks for the help.

Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions