Mod Rewrite problem

Discussion in 'Programming' started by LilPutian, Oct 21, 2008.

  1. #1
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.mysite\.ws$ [NC]
    RewriteRule ^(.*)$ http://mysite.ws/$1 [R=301,L]


    This works except when I go to www.mysite.ws/admin/ then I get A 401 error.

    /admin/ is password protected using a separate htaccess.

    Any Suggestion what I am doing wrong?

    Thanks
     
    LilPutian, Oct 21, 2008 IP
  2. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #2
    try putting a
    RewriteEngine Off
    statement into the /admin/ dir´s htaccess file...
     
    happpy, Nov 10, 2008 IP