probelm with Ezine and redirecting links to aff offer

by satrap
12 replies
I am trying for the first time to use redirects for some affiliate product that I am promoting using ezine. So, after searching on wf and finding out how to do it, I made a simple file using this code

<?php
header( 'Location: myafflink.com' ) ;
?>


And uploaded it to the home directory of my domain.

Now, when I type in the domain (mydomain.com) it goes to the main domain, not to the aff product page. To get it to redirect to the aff offer, I have to type in mydomain/myfile.php.

But, ezine doesn't allow redirect using subdomain or things like mydomain.com/myfile.php. So, I can not use this (mydomain/myfile.php) link in my resource box. Instead I have to use mydomain. But obviously at this point, it wont redirect to my affiliate offer's sales page. Am I missing something? What am I doing wrong?

Thank you very much in advance.
#aff #ezine #links #offer #probelm #redirecting
  • Profile picture of the author dremora
    Either do a proper domain redirect or put a video with clickable aff. link or a hyperlinked image (preferebly supplied by the product guys) on the landing page.
    {{ DiscussionBoard.errors[2526860].message }}
    • Profile picture of the author satrap
      Originally Posted by dremora View Post

      Either do a proper domain redirect or put a video with clickable aff. link or a hyperlinked image (preferebly supplied by the product guys) on the landing page.

      Thanks for your reply. That's the whole point of my thread. Am I doing it the right way, if not what is the proper way to do a redirect?
      Thank you in advance.
      Signature
      60 Awesome Ways to Make Money Without a Job
      .................................
      Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
      {{ DiscussionBoard.errors[2526870].message }}
  • Profile picture of the author satrap
    Another question I have is, if I am hosting multiple domains on the same account, how would I go about uploading that php file to the public html, to redirect that one domain, while not impacting other domains? (Just in case if it matters at all, I have wp installed on other domains)
    I am sorry if it all sounds to crazy. I really am clueless when it comes to technical things like this. Thank you very much for your help guys.
    Signature
    60 Awesome Ways to Make Money Without a Job
    .................................
    Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
    {{ DiscussionBoard.errors[2526881].message }}
  • Profile picture of the author 2d0k
    Do you have existing web contents on your domain page that you wish to retain?

    or it is just a blank index page for use mainly to redirect to an affiliate page? If this is the case, you just have to insert the affiliate url in you code like:

    <?php
    header( 'Location: www.mydomain/myfile.php.' ) ;
    ?>

    or you can use this code:

    <html>
    <head><title>Product Name</title></head>
    <frameset border="0" rows="100%,*">
    <frame src="www.mydomain/myfile.php." />
    <frame />
    </frameset>
    </html>

    You name this code index.php and upload to the domain root directory. You website visitors will see your affiliate page in your main domain..
    Signature
    World News | Hasta La Victoria Siempre! | Website Hosting Cost
    {{ DiscussionBoard.errors[2526886].message }}
  • Profile picture of the author Shannon Spoon
    The way i do a redirect (if your using Go Daddy) is to go to your Domain manager. Check the box to the left of your site. The next step is to click on foward then click foward doamin. Then fill in your information where you want your site redirected to.

    Works every time.
    {{ DiscussionBoard.errors[2526890].message }}
  • Profile picture of the author JackBenson
    your doing it right just name the file index.php instead of myfile.php
    {{ DiscussionBoard.errors[2526895].message }}
    • Profile picture of the author satrap
      Originally Posted by JackBenson View Post

      your doing it right just name the file index.php instead of myfile.php

      Thank you very much. I knew there was something little I was missing. Problem solved! Thank you very much. I really appreciate it.
      Signature
      60 Awesome Ways to Make Money Without a Job
      .................................
      Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
      {{ DiscussionBoard.errors[2526910].message }}
  • Profile picture of the author Istvan Horvath
    Am I missing something? What am I doing wrong?
    Yes. It must be index.php - never "myfile-whatever.php"

    The default file for the folder has to be called index.
    Signature

    {{ DiscussionBoard.errors[2526898].message }}
    • Profile picture of the author satrap
      Thank you all for taking time to help out. I really appreciate it.


      Originally Posted by Istvan Horvath View Post

      Yes. It must be index.php - never "myfile-whatever.php"

      The default file for the folder has to be called index.
      Again Istvan, like always you have the right answer. I was actually waiting and hoping to hear from you. Thank you.
      Signature
      60 Awesome Ways to Make Money Without a Job
      .................................
      Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
      {{ DiscussionBoard.errors[2526914].message }}
  • Profile picture of the author 2d0k
    Yes, Shannon's suggestion helps also if your domain is hosted by GoDaddy..
    Signature
    World News | Hasta La Victoria Siempre! | Website Hosting Cost
    {{ DiscussionBoard.errors[2526899].message }}
  • Profile picture of the author CPA
    Man seriously, you don't even need hosting if you simply plan to redirect the domain. You can do this from your account at godaddy or namecheap as soon as you register it.
    Signature
    Article writing services still available!
    {{ DiscussionBoard.errors[2526979].message }}

Trending Topics