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/ http://mail.server.com/webmail/
    Redirect permanent ^Books/ http://www.server.com/books/
  3. pythod

    pythod New Member

  4. mistwang

    mistwang LiteSpeed Staff

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

    Code:
    Redirect permanent /webmail/     [URL]http://mail.server.com/webmail/[/URL]
    Redirect permanent /Books/  [URL]http://www.server.com/books/[/URL]

Share This Page