Trouble rewriting requests to lowercase

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


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2007
Nick
 
Posts: n/a
Default Trouble rewriting requests to lowercase

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.

  #2 (permalink)  
Old 04-18-2007
Purl Gurl
 
Posts: n/a
Default Re: Trouble rewriting requests to lowercase

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0