httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Gushlow <nick.gush...@westcoast.co.uk>
Subject RE: [users@httpd] mod_rewrite problem
Date Fri, 19 Aug 2005 09:55:55 GMT
On Fri, 2005-08-19 at 11:24 +0200, Axel-St├ęphane SMORGRAV wrote:


> RewriteLog /var/www/epp/logs/epp.rewrite.log RewriteLogLevel 9 RewriteEngine on
> 
> RewriteCond %{REQUEST_URI} !\.(php|gif|jpg|html?|css|js|doc|pdf)$
> RewriteRule ^/([^/]*)/?$ /index.php?epp=$1         [L] 
> 
> I compacted the rewrite conditions and simplified the regexp. I added a ^ to the start
of the rewrite rule, and a /? at the end just in case the path ended in a /. 


NIcely done, I didn't think to try to compact the rules - my regexing
skills are limited.



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


ah fantastic, I'll give that a go.

Mime
View raw message