This is a discussion on Trouble rewriting requests to lowercase within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm moving a site from IIS on Windows to Apache/1.3.36 on Linux and want to rewrite ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm moving a site from IIS on Windows to Apache/1.3.36 on Linux and
want to rewrite all requests (excluding any in the cgi-bin) to lower case to simulate the case insensitivity of Windows. I'll then upload all site files with lower case names. Here's what I thought would work: #VirtualHost section of httpd.conf for the site in question RewriteMap tolower int:tolower #.htaccess file in root of site: RewriteEngine On RewriteCond %{REQUEST_URI} !^/cgi-bin [NC] RewriteRule ^(.*)$ ${tolower:$1} [NS,L] Using the above commands seems to cause a 500 error. Could anyone tell me what commands I should be using? Using redirects I've been able to verify that the "tolower" map is working, but I can't figure out how to turn that into a successful rewrite. |
|
|||
|
Nick wrote:
> I'm moving a site from IIS on Windows to Apache/1.3.36 on Linux and > want to rewrite all requests (excluding any in the cgi-bin) to lower > case to simulate the case insensitivity of Windows. I'll then upload > all site files with lower case names. > #VirtualHost section of httpd.conf for the site in question > RewriteMap tolower int:tolower > #.htaccess file in root of site: > RewriteEngine On > RewriteCond %{REQUEST_URI} !^/cgi-bin [NC] > RewriteRule ^(.*)$ ${tolower:$1} [NS,L] http://www.webmasterworld.com/forum92/5308.htm (very bottom of page) http://www.apache.jp/docs/misc/rewriteguide.html (find mass virtual hosting) Purl Gurl |