RewriteRule to allow access to some directory

Author Message

Pontus Magnusson

Monday 17 October 2005 1:14:43 pm

In my DocumentRoot there's one directory named 'stat' contains web statistics.

I want to allow restricted user (need authentication) to access this directory as normal.

How can I setup RewriteRule now?

Currently the rule is as follow:

RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(htm?l|gif|css|jpg|png|jar|js|ico|pdf|swf)$ /index.php

Pontus Magnusson

Monday 17 October 2005 1:16:00 pm

For example, normally with this RewriteRule url http://example.com/stat/ will be handled by eZ publish. But I want that handled by Apache.

Thanks.

Mark Marsiglio

Monday 17 October 2005 6:12:38 pm

Pontus -

I usually use a variation of the .htaccess file offered up by Ekkehard on this post...

http://ez.no/community/forum/install_configuration/htaccess_hidden_at_last/re_htaccess_hidden_at_last__4

There is a section toward the end that allows you to specify folders to be excluded from the normal eZ URL handling.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

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