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

problem with 301 redirect

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

  1. nonai

    nonai Power Member

    Joined:
    Oct 10, 2013
    Messages:
    524
    Likes Received:
    63
    I got a domain to redirect to my money site. I have set up the 301 redirect.so when typed into browser, old-domain.com goes to money-site.com
    but here is the problem:
    the old site had a lot of inner pages. Now if someone goes to old-domain.com/kbn.html it redirects to money-site.com/kbn.html but the problem is, money-site.com/kbn.html does not exist.

    Will this cause any problems? How can I solve it?
     
  2. nullfo

    nullfo BANNED BANNED

    Joined:
    May 10, 2014
    Messages:
    193
    Likes Received:
    215
    Edit .htaccess:

    Code:
    Options +FollowSymLinksRewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^old\.tld$ [NC]
    RewriteRule ^(.*)$ http://new.tld [R=301,L]
    
     
  3. davids355

    davids355 Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 25, 2011
    Messages:
    8,795
    Likes Received:
    6,344
    Home Page:
    Are the pages on the new site at all? If yes is there any sort of pattern to the old and new pages? If yes google htaccess reg ex - this is where you can make a redirect rule that will map old pages to new pages.

    if there's no pattern, just look up htaccess 301 and you can make a separate rule for each page.

    if the pages don't exist on the new site then look up htaccess redirect entire site to single page, and redirect everything to homepage of new site.