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

redirect individual page only to new site

Discussion in 'Black Hat SEO' started by yoaussie, May 25, 2008.

  1. yoaussie

    yoaussie Guest

    hi guys,

    I need to redirect sitename.c0m/blue-bananas.html to newsite.c0m. I only want to redirect this page, not the entire sitename.c0m domain. How do I do this in php?

    And, is it possible to send sitename.c0m/red-bananas.html to anothernewsite.c0m as well as the blue-bananas.html redirection?

    I appreciate any help!

    Cheers,
    YoAussie
     
  2. wealthy199

    wealthy199 BANNED BANNED

    Joined:
    Sep 24, 2007
    Messages:
    585
    Likes Received:
    1,088
    Sure...

    If your page is in html like you said above there's no need to redirect using php.

    Just copy and paste this code into the page you want to redirect.

    Code:
    <html>
    <head>
    <title>Redirecting...</title>
    <META HTTP-EQUIV=Refresh CONTENT="0; URL=http://www.newsite.com/">
    </head>
    <body>
    </body>
    </html>
    
     
  3. blanko

    blanko Power Member

    Joined:
    Mar 16, 2008
    Messages:
    588
    Likes Received:
    125
    I tried posting a code for you, but the forum blocked it.

    wealthy's will work just fine for you.
     
  4. boomboomer

    boomboomer Executive VIP

    Joined:
    Feb 7, 2008
    Messages:
    705
    Likes Received:
    865
    You could also do a .htaccess redirect.

    Create a .htaccess file and put the following code in it

    Code:
    RewriteEngine on
    RewriteRule blue-bananas.html http://www.newsite.c0m
    RewriteRule red-bananas.html http://www.anothernewsite.c0m