PDA

View Full Version : Invalid rewrites


ffeingol
09-13-2007, 05:55 PM
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

mistwang
09-13-2007, 06:50 PM
It should work. there should be a SPACE between "%{SERVER_PORT}" and "!443", please double check.

ffeingol
09-13-2007, 06:55 PM
Thank you much, that was it.

Frank