Help - Redirecting URLs from one Domain

5 replies
I know I've seen this solution before, but I can't find it:

How do you redirect to various sites from one domain and extension?

For example,

mysite.com/acne
mysite.com/dogtraining

Please be specific, I'm very ungeeky about these things.

BTW, I use Hostgator with cPanel, if that matters.

Thanks.
#domain #redirecting #urls
  • Profile picture of the author Brandon Sheley
    here you go, a number of ways to achieve this
    301 Redirect - How to create Redirects
    Signature
    {{ DiscussionBoard.errors[2091390].message }}
  • Profile picture of the author sanssecret
    Well, it doesn't get any more 'untechie' than this. It's what I use so it must be idiot proof.

    iFrame PHP Redirect Generator Software | Mask or Cloak your URL's and Affiliate Links
    Signature
    San

    The man who views the world at fifty the same as he did at twenty has wasted thirty years of his life. ~Muhammad Ali
    Pay me to play. :) Order a Custom Cover today.
    {{ DiscussionBoard.errors[2091440].message }}
  • Profile picture of the author Michelle Waters
    Honestly, I would avoid iframes -- or any kind of frames -- whenever possible.

    If you have a self-hosted WordPress site, you can use a plugin called Go Codes that will allow you to create redirect links from within your dashboard.

    You can also find standalone software that will do the same thing. I used a script several years ago that did this, but don't remember the name now.
    {{ DiscussionBoard.errors[2093184].message }}
  • Profile picture of the author l3vi501
    I would use htaccess and mod rewrite. That will give a nice 301 for the users and search engines.
    {{ DiscussionBoard.errors[2093228].message }}
  • Profile picture of the author jaiganeshv
    the best and easist way AFAIK is given below:

    to have the link mysite.com/acne to point to your affiliate product about acne that has URL like www.acneproductname.com/?affid=78

    step 1:
    create a folder named "acne" in root directory of your site

    step 2:
    create a file named index.php in the newly created directory "acne"
    with the following CODE ALONE

    PHP Code:
    <?php
    header
    'Location: http://www.acneproductname.com/?affid=78' ) ;
    ?>
    replace the affiliate link in above code accordingly

    similarly for mysite.com/dogtraining create a directory for dogtraining with an index.php there pointing to that affiliate link.

    thank you
    {{ DiscussionBoard.errors[2093279].message }}

Trending Topics