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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > htaccess redirect help

Reply
 
Thread Tools Display Modes
  #11  
Old 09-11-2011, 10:22 PM
atomicmak atomicmak is offline
Member
 
Join Date: Sep 2011
Posts: 11
thanks a ton it worked.

now to the 2nd point i mention would appreciate if you can help me out redirecting the caps to small letters conversion in url's.
Reply With Quote
  #12  
Old 09-11-2011, 10:44 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
try:

RewriteRule Gulls/Laughing_gull gulls/laughing_gull [R=301,L]
RewriteRule Gulls gulls [R=301,L]
Reply With Quote
  #13  
Old 09-11-2011, 10:46 PM
atomicmak atomicmak is offline
Member
 
Join Date: Sep 2011
Posts: 11
well its not the only url

what i was trying to convey is i have more than 300+ such caps letter url which i want to convert to small letters.

in a short i want to convert caps to small letter in url through Rewrite Rule
Reply With Quote
  #14  
Old 09-11-2011, 10:56 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
then try RewriteMap
Reply With Quote
  #15  
Old 09-11-2011, 11:00 PM
atomicmak atomicmak is offline
Member
 
Join Date: Sep 2011
Posts: 11
tried this

<IfModule mod_rewrite.c>
RewriteEngine On

#WWW redirect
RewriteCond %{HTTP_HOST} !^www\.wildart\.in$
RewriteRule ^(.*)$ http://www.wildart.in/$1 [R=301,L]

#Force lowercase urls
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

--------
didnt worked
anything wrong ?
Reply With Quote
  #16  
Old 09-11-2011, 11:04 PM
atomicmak atomicmak is offline
Member
 
Join Date: Sep 2011
Posts: 11
i am on shared hosting and i was reading forums saying

RewriteMap lc int:tolower

has to go in httpd.conf and i am surprise if i am allowed to do so..
Reply With Quote
  #17  
Old 09-11-2011, 11:11 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
yes, according to
http://httpd.apache.org/docs/current...tml#rewritemap
Quote:
RewriteMap Directive

Description: Defines a mapping function for key-lookup
Syntax: RewriteMap MapName MapType:MapSource
Context: server config, virtual host
its context not include .htaccess
so looks no simple solution in .htaccess
Reply With Quote
  #18  
Old 09-11-2011, 11:15 PM
atomicmak atomicmak is offline
Member
 
Join Date: Sep 2011
Posts: 11
oh okay. will try to talk to hawkhost people and find if they can help to resolve this ..

thanks a ton again for some prompt help
Reply With Quote
  #19  
Old 09-19-2011, 01:38 PM
thuyend thuyend is offline
New Member
 
Join Date: Sep 2011
Posts: 1
I have similar rewrite issue.

1) installing phpMyFAQ on litespeed
2) i tried to add .htaccess on the directory /usr/local/lsws/DEFAULT/html
htaccess looks like

RewriteEngine On
RewriteBase /phpMyFAQ/phpmyfaq-2.6.17/
RewriteRule ^(.*)$ index.php?action=login [R=301,L]

3) getting error 404

Content len: 39, Request line: 'POST /phpMyFAQ/phpmyfaq-2.6.17/?action=login HTTP/1.1'
Cookie len: 196, pmf_sid=300; FAIL_REDIRECT_URL=http%3A//soc-nms-01%3A8080/; pmf_auth=7f2b3f910c2b3ccacb0b3d168f8c82f8; LSWSWEBUI=0b1e2d4b0b57815a9b21d6f6df9394d4; lsws_uid=WhorRzeqL44%3D; lsws_pass=IMD5gb8hAH0%3D
Find context with URI: [/], location: [/usr/local/lsws/DEFAULT/html/]
[REWRITE] Rewrite engine is not enabled for context '/'
Index file is not available in [/usr/local/lsws/DEFAULT/html/phpMyFAQ/phpmyfaq-2.6.17/]

Please help.
Reply With Quote
  #20  
Old 09-19-2011, 06:41 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
[REWRITE] Rewrite engine is not enabled for context '/'
looks like .htaccess not work at all.
please check settings of
Server->General->Allow Override
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 04:27 PM.



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