Invalid rewrites

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

  1. ffeingol

    ffeingol Well-Known Member

    Hello All,

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

    rewriteEngine On
    rewriteCond %{SERVER_PORT}!443
    rewriteRule ^(.*)$$1 [R,L]

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

  2. mistwang

    mistwang LiteSpeed Staff

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

    ffeingol Well-Known Member

    Thank you much, that was it.


Share This Page