Re: RewriteRule/Cond Assistance

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

 



On 7/16/07, Mike @ Levrah <sid_apache@xxxxxxxxxx> wrote:

##################################################
RewriteRule ^/index.mv [L]      #       Don't affect main index
RewriteRule ^/admin [L]         #       Don't affect /admin directory
RewriteRule ^/gallery [L]       #       Don't affect /gallery directory
RewriteRule ^/support [L]       #       Don't affect /support directory
RewriteRule ^/(.+) /index.mv?$1         #       Send all other
requests to index with directory_name as arg of index

Here's the relevant part of the error_log:

[Mon Jul 16 20:46:16 2007] [alert] [client <IP>]
/home/httpd/vhosts/blah.com/httpdocs/.htaccess: RewriteRule: bad flag
delimiters, referer: http://www.blah.com/webfinds/index.mv

You're still missing the dash in place of the substitution string that
tells mod_rewrite not to do any rewriting for that URL. Plus, you
can't use end-of-line comments in apache config files.

Joshua.

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