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

301 redirect of sub-folders?

Discussion in 'Black Hat SEO' started by rakeem, May 19, 2016.

  1. rakeem

    rakeem Junior Member

    Joined:
    Nov 2, 2011
    Messages:
    133
    Likes Received:
    47
    hey dudes,

    i am wondering how to 301 redirect sub-folders on namecheap. i recently brought a niche relevant domain and want to 301 redirect to my money site. but if i enter domain/abc it forwards to moneysite/404

    namecheap said i can not do this. but this way some backlinks of the domain will be redirected to my 404 page and the juice will not effect!?!

    i have another domain at eyname and there its all good. all sub-folders redirect to moneysite.com

    i know i can use a plugin like 404 to start but i think its better to have a 404 page for SEO.

    any ideas?
     
  2. Nargil

    Nargil Jr. VIP Jr. VIP

    Joined:
    May 10, 2012
    Messages:
    4,655
    Likes Received:
    2,991
    Location:
    Europe
    Home Page:
    Put this code into Htaccess. Obviously, replace "domain.com" with the domain where you want your site to be redirected.

    RewriteEngine On
    RewriteRule ^(.*)$ http://domain.com/ [R=301]