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.

Reply via email to