httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-St├ęphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] mod_rewrite problem
Date Fri, 19 Aug 2005 16:43:30 GMT
Since the original suggestion was 

RewriteCond %{REQUEST_URI} !^.*abbey(.*)

I think this is what was desired... and btw the () was unnecessary for since it was never
referenced.

-ascs 

-----Original Message-----
From: Noah [mailto:sitz@onastick.net] 
Sent: Friday, August 19, 2005 5:09 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] mod_rewrite problem

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


---------------------------------------------------------------------
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