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

redirecting domains?

Discussion in 'Black Hat SEO' started by CSalt2, May 29, 2010.

  1. CSalt2

    CSalt2 Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 5, 2009
    Messages:
    753
    Likes Received:
    357
    Man I'm kind of lost here, how could i redirect any domains to my main domain?

    i have done this before but i can't remember anymore


    all i need to do is send mydomain.com/randomlineofnumbersandletters-mydomain.com/frgf945-mydomain.com/diogfui34 to mydomain.com

    hearts out to anyone who can help :beat4:
     
  2. maximillian_cooper

    maximillian_cooper Registered Member

    Joined:
    Mar 17, 2010
    Messages:
    87
    Likes Received:
    74
    Location:
    Finland
    if 'diogfui34' is a folder, then use simple php redirect by creating index.php in 'diogfui34' folder

    in this index.php write only

    Code:
    <?php
    
       header( 'Location: http://www.yoursite.com/new_page.html' ) ;
    
    ?>
    SOURCE:http://php.about.com/od/learnphp/ht/phpredirection.htm
     
  3. CSalt2

    CSalt2 Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 5, 2009
    Messages:
    753
    Likes Received:
    357
    no it wouldnt be a actual folder, its just for if they misspelled it it would go to the main domain?
     
  4. maximillian_cooper

    maximillian_cooper Registered Member

    Joined:
    Mar 17, 2010
    Messages:
    87
    Likes Received:
    74
    Location:
    Finland
    then try using ".htaccess redirects"
    or if u using cPanel, then you can set 404 error page to go the front index page