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

does anyone know hot to redirect all external links to index page

Discussion in 'Black Hat SEO' started by STBNetwork, Feb 14, 2009.

  1. STBNetwork

    STBNetwork Junior Member

    Joined:
    Feb 3, 2009
    Messages:
    145
    Likes Received:
    50
    is it possible to redirect any sub page linking back to my index page using htaccess ?
     
  2. stinky_boy

    stinky_boy Junior Member

    Joined:
    Nov 21, 2008
    Messages:
    128
    Likes Received:
    35
    Occupation:
    head games
    Location:
    money street
  3. STBNetwork

    STBNetwork Junior Member

    Joined:
    Feb 3, 2009
    Messages:
    145
    Likes Received:
    50
    i want to redirect people from linking directly to /1.html /2.html site wide
    not redirect from /oldpage.html to /newpage.html

    i want all incoming links to force the index page to be viewed.
     
  4. yoyas

    yoyas Junior Member

    Joined:
    Nov 14, 2008
    Messages:
    145
    Likes Received:
    397
    Location:
    Spain
    I don't know much PHP but you could make an script that check the referrer and then redirect them to the index.
     
  5. bossman

    bossman Newbie

    Joined:
    Feb 8, 2009
    Messages:
    30
    Likes Received:
    1
    Redirect 301 / yourdomainhere

    If you were working off the index only that would redirect everything that hit your domain to your index page, I think!
     
  6. mikecarquote

    mikecarquote Newbie

    Joined:
    Jan 5, 2008
    Messages:
    10
    Likes Received:
    0
    try

    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ index.php [L]