Invalid rewrites

Discussion in 'Apache Migration/Compatibility' started by ffeingol, Sep 14, 2007.

  1. ffeingol

    ffeingol New Member

    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
  2. mistwang

    mistwang LiteSpeed Staff

    It should work. there should be a SPACE between "%{SERVER_PORT}" and "!443", please double check.
  3. ffeingol

    ffeingol New Member

    Thank you much, that was it.

    Frank

Share This Page