Re: [users@httpd] mod_rewrite problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux