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.

eZ debug

Timing: Jan 31 2025 04:26:18
Script start
Timing: Jan 31 2025 04:26:18
Module start 'layout'
Timing: Jan 31 2025 04:26:18
Module start 'content'
Timing: Jan 31 2025 04:26:18
Module end 'content'
Timing: Jan 31 2025 04:26:18
Script end

Main resources:

Total runtime0.0185 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.3828151.2422
Module start 'layout' 0.00710.0032 739.625036.7109
Module start 'content' 0.01030.0064 776.335990.2500
Module end 'content' 0.01670.0018 866.585929.9922
Script end 0.0185  896.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.3396140.0002
Check MTime0.00115.8504140.0001
Mysql Total
Database connection0.00115.912210.0011
Mysqli_queries0.002915.753030.0010
Looping result0.00000.140310.0000
Template Total0.00147.610.0014
Template load0.00115.869710.0011
Template processing0.00031.722310.0003
Override
Cache load0.00063.061010.0006
General
dbfile0.00105.317580.0001
String conversion0.00000.055440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs