1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is Wrong In this 301 Code

Discussion in 'Black Hat SEO' started by moneyflower, Dec 24, 2016.

Tags:
  1. moneyflower

    moneyflower Regular Member

    Joined:
    Jan 22, 2016
    Messages:
    238
    Likes Received:
    63
    Hello Fellow Blackhaters,

    I want to do a 301 from a particular domain to a post of a diffrent domain, and so I used this code:

    RewriteEngine on

    RewriteRule ^/file\.html$ - [L]

    RewriteRule (.*) http://mynewdomain.com/mynewpost. [R=301,L]


    But the Problem is that it keeps redirecting to the homepage of the new domain and not to the post page.


    Thanks in advance
     
  2. moneyflower

    moneyflower Regular Member

    Joined:
    Jan 22, 2016
    Messages:
    238
    Likes Received:
    63
    hello bhw