Redirect permanent

Discussion in 'Apache Migration/Compatibility' started by pythod, Apr 27, 2007.

  1. pythod

    pythod New Member

  2. mistwang

    mistwang LiteSpeed Staff

    You need to remove the leading "/" of the matching URL when use a rewrite rule in .htaccess. It is the RewriteBase in Apache. Your rewrite rules must be used in Apache httpd.conf before, not in .htaccess.
    Please try,

    Redirect permanent ^webmail/
    Redirect permanent ^Books/
  3. pythod

    pythod New Member

  4. mistwang

    mistwang LiteSpeed Staff

    That works.
    I was confused Redirect with "RewriteRule", the directives should be

    Redirect permanent /webmail/     [URL][/URL]
    Redirect permanent /Books/  [URL][/URL]

Share This Page