ht access not working.

Discussion in 'Programming' started by epikpoker, Jul 7, 2011.

  1. #1
    
    Options +FollowSymLinks 
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} ^domain.com [NC] 
    RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] 
    
    Redirect 301 /article.php?story=nov0306 http://www.newdomain.com/data/name.php
    
    Code (markup):
    This takes me to:

    http://www.newdomain.com/article.php?story=nov0306

    Can anyone help with this? at my wits end.
     
    Last edited: Jul 7, 2011
    epikpoker, Jul 7, 2011 IP
  2. DmitryS

    DmitryS Active Member

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    have you try swaping urls back and forth in redirect rule.
     
    DmitryS, Jul 7, 2011 IP