Need help with redirects please.

7 replies
I was wondering, how do I create re-directs from sub-domains. (i.e.) I have wwwdotmydomaindotcom domain. But I want to redirect from sub-domains. Can it be done?

I want to do this for CPA offers. For example, I want to advertise a CPA offer for an iPhone. The url will be wwwdotmydomaindot.com/iphone. I don't want to create a web-page just a redirect when someone clicks on the url.

I hope I explained this correctly. I use hostgator hosting. Thanks in advance
#redirects
  • Profile picture of the author PCRoger
    I use hostgator, but I'm not 100% clear if I understand what you are asking. A subdomain is subdomain.domain.com.

    At hostgator you can create a subdomain and tell it that subdomain.domain.com is really domain.com/subdomain

    inside subdomain, just have a index.php with your php redirect code in it.

    <?
    header("Location: http://iphonevendor.com");
    ?>

    Naturally, you want to track your sales so.... That's what my program does

    Does that help?

    Regards,
    PCRoger.
    Signature
    Track your affiliate sales back to the ARTICLE or WEBSITE that generated the sale. CBSaleTracker

    I was making money in days with the 4 Day Money Making Blueprint

    {{ DiscussionBoard.errors[1794100].message }}
    • Profile picture of the author Goldenchute
      Originally Posted by PCRoger View Post

      I use hostgator, but I'm not 100% clear if I understand what you are asking. A subdomain is subdomain.domain.com.

      At hostgator you can create a subdomain and tell it that subdomain.domain.com is really domain.com/subdomain

      inside subdomain, just have a index.php with your php redirect code in it.

      <?
      header("Location: http://iphonevendor.com");
      ?>

      Naturally, you want to track your sales so.... That's what my program does

      Does that help?

      Regards,
      PCRoger.
      Hey Roger,

      That's what I needed to know. I forgot that I was looking to change subdomain.domain.com to domain.com/subdomain. I'll need to go look and see how to
      do this. As for the php file. Do I just need to create a text file titled index.php with
      the code an upload it:

      <?
      header("Location: http://iphonevendor.com");
      ?

      Thank you Roger
      Signature

      "Life IS short!" So FUN up!
      Healthy Weight Loss

      {{ DiscussionBoard.errors[1794133].message }}
  • Profile picture of the author PCRoger
    That is correct, just put the redirect address in there and upload.

    Roger.
    Signature
    Track your affiliate sales back to the ARTICLE or WEBSITE that generated the sale. CBSaleTracker

    I was making money in days with the 4 Day Money Making Blueprint

    {{ DiscussionBoard.errors[1794339].message }}
  • Profile picture of the author breadtoaster
    redirects code: <meta http-equiv="refresh" content="0;url=http://redirect to where">
    * redirect to where = your desired website.

    * There is also a redirect service at Hostgator, under domains, redirects.

    Hope it helps,
    Erica
    {{ DiscussionBoard.errors[1794770].message }}
  • Profile picture of the author druwainwright
    Use Host Gator it makes life easier...
    {{ DiscussionBoard.errors[1795280].message }}
  • Profile picture of the author Paleochora
    I think I know what you mean. I use a free tool called profit protector. It cloaks your affiliate links and redirects at the same time and is very easy to use.

    Basically you would put in the link to the landing page of the vendor, choose a name so, in your example it would be iphone. Click OK and it automatically creates a age called http://www.yourdomain.com/iphone.html which you then upload to your site.

    Use this for all affiliate hoplinks on your site as the big G hates affiliate links.
    {{ DiscussionBoard.errors[1795484].message }}
  • Profile picture of the author Goldenchute
    Roger
    Erica
    Druwain
    Paleochora

    Thank you for your time and input!
    Signature

    "Life IS short!" So FUN up!
    Healthy Weight Loss

    {{ DiscussionBoard.errors[1798639].message }}

Trending Topics