Share » Forums » Install & configuration » ez Module conflict with my Site Manager

ez Module conflict with my Site Manager

ez Module conflict with my Site Manager

Saturday 14 October 2006 3:50:57 am - 6 replies

Modified on Saturday 14 October 2006 3:52:36 am by Softriva .com

Author Message

Patrick Kaiser

Saturday 14 October 2006 6:30:47 am

you have to adjust your rewrite rules of apache. if you are using an vhost based setup add the following line to you httpd.conf (or the file where you defined your vhost):

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^/manager - [L]
    RewriteRule ^/pma - [L]
    [...] further ez rewrite rules here
    RewriteRule .* /index.php
</IfModule>

with the code above you instruct apache NOT to rewrite the request of /manager and /pma to ez's index.php.

if you are using non virtual host mode then you have to edit the .htaccess file and change the rewrite rule and the FilesMatch directive accordingly.

best regards, patrick


Best regards,

Patrick

Xavier Dutoit

Saturday 14 October 2006 11:58:28 am

[edit] For some reasons, the previous post wasn't displayed when I wrote this one[/edit]

By modifying your rewrite rules to exclude these directories

add after the RewriteEngine on

Rewriterule ^/manager* - [L]

and the others.

X+

http://www.sydesy.com

Softriva .com

Saturday 14 October 2006 2:07:18 pm

Unfortunately, it did not work. I am sure that I am doing something wrong but I can't figure it out. Anyhow, I am using Virtual Private Server (VPS) and my .htaccess file is shown below; anything wrong with it?

DirectoryIndex index.php 
 
RewriteEngine On 
RewriteRule ^/manager* - [L]
RewriteRule ^/pma* - [L]
 
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]

Softriva .com

Saturday 14 October 2006 2:40:51 pm

I also tried these links but still could not figure it out

http://ez.no/products/ez_publish/documentation/configuration/configuration/tips_tricks/exclude_uris_from_rewrite
http://ez.no/products/ez_publish/documentation/installation/virtual_host_setup/excluding_other_parts_of_your_website

Thank you for your help.

Kristof Coomans

Sunday 15 October 2006 1:51:17 am

Hi OOzy

Try without the leading slashes:

RewriteRule ^manager* - [L]
RewriteRule ^pma* - [L]

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Softriva .com

Sunday 15 October 2006 2:14:34 am

Thank you all.

It worked.

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

36 542 Users on board!

Forums menu