Re: [users@httpd] Re-Post: rewrite backslash to forward slash

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

 



joshua hough <josh@xxxxxxxxxxxxxxx> writes:

[...]

> Can't Apache simply be told to rewrite a backslash to a slash?

This works for me:

    RewriteRule ^(.*)\\(.*)$ $1/$2 [R]

That is, replace a URL that starts with X, then has a backslash, then
ends with Y with X then a forward slash then Y, and send back a
redirect to the browser.

This redirects them to the correctly named page, so each page has One
True Name (which will improve caching).

See:

    http://httpd.apache.org/docs/mod/mod_rewrite.html

for more information.

----ScottG.

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