Forums / Install & configuration / Problem with rewriterule

Problem with rewriterule

Author Message

Fou Jino

Wednesday 16 March 2011 6:39:43 am

Hi everyone,

I have a little problem with my ez publish installation ; the rewrite rule for index.php it's not works :s

Here my virtual host for wamp :

Listen 10000 <VirtualHost *:10000>

<Directory c:/wamp/www/akac>

Options Indexes FollowSymLinks MultiViews

AllowOverride all

Order allow,deny

Allow from all

</Directory>

<IfModule mod_php5.c>

php_admin_flag safe_mode Off

php_admin_value register_globals 0

php_value magic_quotes_gpc 0

php_value magic_quotes_runtime 0

php_value allow_call_time_pass_reference 0

</IfModule>

DirectoryIndex index.php

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule content/treemenu/? /index_treemenu.php [L]

RewriteRule ^/var/storage/.* - [L]

RewriteRule ^/var/[^/]+/storage/.* - [L]

RewriteRule ^/var/cache/texttoimage/.* - [L]

RewriteRule ^/var/[^/]+/cache/(texttoimage|public)/.* - [L]

RewriteRule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]

RewriteRule ^/share/icons/.* - [L]

RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]

RewriteRule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]

RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]

RewriteRule ^/favicon\.ico - [L]

RewriteRule ^/robots\.txt - [L]

RewriteRule .* /index.php

</IfModule>

DocumentRoot c:/wamp/www/akac

</VirtualHost>

My ez publish is a standard installation, with 4 different siteacces (include administration)

One of you can tell me what is the problem please ?

Thanks in advance !

Foujino ~ http://www.foujino-blog.be

Damien Pobel

Wednesday 16 March 2011 7:02:51 am

Hi,

Maybe the mod rewrite is not enabled in Apache ? You can try to comment out the line <IfModule mod_rewrite.c> and the corresponding </IfModule> and restart Apache to check this. If there's an error, you have to enabled the mod rewrite

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Ron Haines

Wednesday 16 March 2011 3:38:06 pm

Refer to this post and see if it helps you out.....

http://share.ez.no/forums/install-configuration/work-arrounds-for-using-ez-publish-with-php-cgi

The past is past and cannot be changed, while the future is shaped by action taken in the present.