httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah <s...@onastick.net>
Subject Re: [users@httpd] mod_rewrite problem
Date Fri, 19 Aug 2005 15:09:07 GMT
On Fri, Aug 19, 2005 at 11:24:49AM +0200, Axel-St?phane  SMORGRAV wrote:
>  Uh Uh. Forgot to add the abbey stuff:
> 
> RewriteLog /var/www/epp/logs/epp.rewrite.log 
> RewriteLogLevel 9 
> RewriteEngine on
> 
> RewriteCond %{REQUEST_URI} !\.(php|gif|jpg|html?|css|js|doc|pdf)$
> RewriteCond %{REQUEST_URI} !abbey
> RewriteRule ^/([^/]*)/?$ /index.php?epp=$1         [L] 

Just be aware that with /that/ 'abbey' rule, you'll catch 'abbey'
*anywhere* in the URL, including as a subword of something, such as:

http://www.example.com/directory/cities/blabbeyville/coffeeshops.html

This may or may not be desired. =)

--n

-- 
Neil! Your bed's on fire!

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message