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

htaccess question

Discussion in 'Black Hat SEO' started by nonai, May 16, 2014.

  1. nonai

    nonai Power Member

    Joined:
    Oct 10, 2013
    Messages:
    524
    Likes Received:
    63
    hi guys

    here is another htaccess question. I wish I knew apache so I could do all this myself. sometimes it takes me hours to research and find the right code.

    I have a domain with a lot of inner pages. I want to 301 these pages to the homepage:

    /wordpress
    /forum
    /forum/best/

    how can I do this?
     
  2. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    Put this in your .htaccess file:

    Code:
    Redirect 301 /wordpress http://yourhomepage.com
    Redirect 301 /forum http://yourhomepage.com
    Redirect 301 /forum/best/ http://yourhomepage.com
    Replace yourhomepage.com with your domain.