LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > CheckCase url case senstivity

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2012, 09:37 PM
Aakarshan29 Aakarshan29 is offline
New Member
 
Join Date: Feb 2012
Posts: 2
Default CheckCase url case senstivity

My webhost is using litespeed and I am facing a problem which makes my script unstable when url's case is changed. Is there an solution to it so that litespeed check the url case and redirect to available directory like CheckCaseOnly string in Apache ?
Reply With Quote
  #2  
Old 02-06-2012, 10:25 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
for particular URL, you can do it in .htaccess:

RewriteRule aBc.html abc.html [NC]

[NC] mean "no case"

so ABC.html, AbC.html etc all accessible.

or
RewriteRule aBc.html abc.html [NC,R]

all redirect to abc.html, to let user know the correct case.
Reply With Quote
  #3  
Old 02-06-2012, 10:50 PM
Aakarshan29 Aakarshan29 is offline
New Member
 
Join Date: Feb 2012
Posts: 2
What if I want to make litespeed check for the case url by itself and display the appropriate page ? I want it to be default for whole of the website as CheckCaseOnly in APACHE does.
Reply With Quote
  #4  
Old 02-07-2012, 12:19 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
here is a possible workaround:

define RewriteMap in httpd.conf like this:
RewriteMap lowercase int:tolower

put the rule in httpd.conf:
RewriteRule ^/(.*)$ /${lowercase:$1} [L]

or in .htaccess
RewriteRule ^(.*)$ /${lowercase:$1} [L]
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:08 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.