Remove index.php from eZp ver 4.0 using .htaccess

Author Message

Softriva .com

Thursday 07 February 2008 1:10:44 pm

Hello I am using the code below in .htaccess to strip out index.pnp from the url in Apache 1 and ezp 3.xx. Now, I am using Apache2 for ezp 4 and the code does not seem to work. Any idea?

DirectoryIndex index.php 
 
RewriteEngine On 

RewriteRule !\.(gif|jpe?g|png|css|js|jar|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C] 
 
RewriteCond %{HTTP_HOST} ^webdav\..* 
RewriteRule ^(.*) webdav.php [L] 
RewriteCond %{HTTP_HOST} ^soap\..* 
RewriteRule ^(.*) soap.php [L] 
RewriteRule ^var/cache/debug.html.* - [L] 
RewriteRule ^var/[^/]+/cache/debug.html.* - [L] 
Rewriterule ^var/storage/.* - [L] 
Rewriterule ^var/[^/]+/storage/.* - [L] 
RewriteRule ^var/cache/texttoimage/.* - [L] 
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L] 
Rewriterule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L] 
Rewriterule ^share/icons/.* - [L] 
Rewriterule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L] 
Rewriterule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L] 
RewriteRule .* index.php [L]

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