Force eZPublish to use index.php?/siteaccess

Force eZPublish to use index.php?/siteaccess

Monday 06 February 2006 9:15:58 am - 4 replies

Author Message

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

You must be logged in to post messages in this topic!

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