Force eZPublish to use index.php?/siteaccess

Author Message

SiXty NiNe

Monday 06 February 2006 9:15:58 am

Hi
I installed eZP on two different webhostings, both with Apache1.3.3/PHP4.3.11 (CGI mode)
First of the two works perfectly with index.php?/siteaccess URLs, but the latter still keeps on trying to use index.php/siteaccess way (that results in 404 error)
Could somebody help me please?
I'm willing to pay the person that can help me out.
Thanks very much
SiXty

Sebastian Picklum

Monday 06 February 2006 9:41:24 am

Hi!

In CGI-Mode, you need mod_rewrite to have index.php/siteaccess URLs.

Regards

Sebastian

sp@php.net

SiXty NiNe

Monday 06 February 2006 9:51:01 am

Hi
Thanks for your reply.
Do you know if that .htaccess is available to download here on ez.no?
There's only one htaccess in eZP installation, and that's not the one I need...
S

Sebastian Picklum

Monday 06 February 2006 3:14:05 pm

Try this .htaccess-File:

RewriteEngine on

RewriteRule !^index\.php.* - [C]
RewriteRule !^webdav\.php.* - [C]

RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C]
RewriteRule (.*) /index.php?/$1&%{QUERY_STRING} [L]

It should work with CGI-Installations (This is a version that does not need index.php in the URL, e.g. "www.somedomain.com/content/view/2". Good luck... :-)

Regards

Sebastian

sp@php.net

SiXty NiNe

Monday 06 February 2006 8:17:09 pm

Great!
Site is running now.
Thanks very much
SiXty

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