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

404 Redirect??

Discussion in 'Black Hat SEO' started by loclhero, Jan 12, 2008.

  1. loclhero

    loclhero Supreme Member

    Joined:
    Jun 11, 2007
    Messages:
    1,453
    Likes Received:
    2,413
    Gender:
    Male
    Location:
    Copperhead Road
    I know how to make a 404 page but isn't there a way in cpanel I can simply redirect any 404 to an aff offer?
     
  2. Rockstar32

    Rockstar32 Newbie

    Joined:
    Oct 10, 2007
    Messages:
    28
    Likes Received:
    23
    I would like to know how to do this also. It makes it much easier and quicker instead of making 404 redirect pages.
     
  3. MaestroDelWeb

    MaestroDelWeb Executive VIP

    Joined:
    Nov 5, 2007
    Messages:
    815
    Likes Received:
    869
    Occupation:
    Jack of all trades.
    Location:
    USA
    In your CPanel click on Error Pages, then click on 404 and add your HTML to redirect people.
     
    • Thanks Thanks x 1
  4. loclhero

    loclhero Supreme Member

    Joined:
    Jun 11, 2007
    Messages:
    1,453
    Likes Received:
    2,413
    Gender:
    Male
    Location:
    Copperhead Road
    thanks for the help vze
    rep given but when i tried this before it didn't work. All i get is my page with Page not found error 404
    ??

    i've got tags to chose from that i'm not understanding. visitors ip address, referring url etc.
    if i just put the aff code in the box nothing's happenin
     
  5. MaestroDelWeb

    MaestroDelWeb Executive VIP

    Joined:
    Nov 5, 2007
    Messages:
    815
    Likes Received:
    869
    Occupation:
    Jack of all trades.
    Location:
    USA
    Just add this into the box:

    Code:
    <meta HTTP-EQUIV="REFRESH" content="0; url=http://affiliatelink.com">
    Don't worry about the tags. They are meant as shortcuts. Where I put affiliatelink just add whatever you want.
     
  6. tomt

    tomt Newbie

    Joined:
    Aug 24, 2007
    Messages:
    25
    Likes Received:
    2
    I have several sites that are totally ran from a custom 404 page. The sites have no physical pages or directories. The 404 page parses out the url request and queries the database for that pages content to display. If someone types in a page url that isn't in the database they are shown the index page of the virtual directory they have requested. If the virtual directory isn't in the database they are taken to the site's virtual home page.

    Tom
     
  7. loclhero

    loclhero Supreme Member

    Joined:
    Jun 11, 2007
    Messages:
    1,453
    Likes Received:
    2,413
    Gender:
    Male
    Location:
    Copperhead Road

    OH, okay. So really it's a meta refresh tag more than an actual redirect like a 301.
    Thanks again.
     
  8. devi

    devi Newbie

    Joined:
    Mar 2, 2007
    Messages:
    21
    Likes Received:
    1
    You can also use the following in an .htaccess file to redirect instead of giving a 404.

    Code:
    # 404 Redirects
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^/?(.*)$ /index.php?url=$1 [L]
    Replace /index.php?url=$1 with whatever URL you want to redirect it to.

    Hope this helps.