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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Invalid rewrites

Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2007, 04:55 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Default Invalid rewrites

Hello All,

We had a client who was trying to use some rewrites like this:

rewriteEngine On
rewriteCond %{SERVER_PORT}!443
rewriteRule ^(.*)$ https://xxx.xxx.com/whmcs/$1 [R,L]

LSWS is not liking the SERVER_PORT. How would you rewrite (this rewrite LOL) to force https under LSWS?

Frank
Reply With Quote
  #2  
Old 09-13-2007, 05:50 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It should work. there should be a SPACE between "%{SERVER_PORT}" and "!443", please double check.
Reply With Quote
  #3  
Old 09-13-2007, 05:55 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Thank you much, that was it.

Frank
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 12:56 AM.



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