case insensitive after hostname

This is a discussion on case insensitive after hostname within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello Is there any one that can help me ? I would like to have my apache server rewrite or ignore ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-26-2003
Ulf
 
Posts: n/a
Default case insensitive after hostname

Hello
Is there any one that can help me ?
I would like to have my apache server rewrite or ignore the cases in
text in the url after the /
So it does not matter if the users write www.foo.dk/dENMARK or
www.doo.dk/denmark
as long as there is a directive named /denmark/
How does I achive this ?
I have been reading through alot of the questions, and tryed to figure
out the RewriteRule module but I does not seem to get it to work.
  #2 (permalink)  
Old 06-26-2003
Joachim Ring
 
Posts: n/a
Default Re: case insensitive after hostname

> Is there any one that can help me ?
> I would like to have my apache server rewrite or ignore the cases in
> text in the url after the /
> So it does not matter if the users write www.foo.dk/dENMARK or
> www.doo.dk/denmark
> as long as there is a directive named /denmark/
> How does I achive this ?
> I have been reading through alot of the questions, and tryed to figure
> out the RewriteRule module but I does not seem to get it to work.


RewriteEngine On
RewriteMap tolower int:tolower
RewriteRule (.*) ${tolower:$1} [PT]

should do the trick in your case (ie. all lowercase underlying
directory structure), but as has been said before, mod_speling is the
way to go.

joachim
 


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

vB 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 06:22 PM.


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