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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
> 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 | |
|
|