How to Redirect WP Domain to a Landing Page?

21 replies
  • WEB DESIGN
  • |
I have a domain name that my hosting company set up on WordPress. How do I redirect it to an affiliate landing page?

PS I am JUST getting started using WP, too. So if you need more info please let me know.

Also, I was reading some of the threads here and some were talking about needing an FTP program. I thought since my hosting company set up my domain on WP, I could make changes right from WP on my computer? No?

Thanks!
#domain #landing #page #redirect #redirect urls #wordpress
  • Profile picture of the author mywebwork
    Aloha Mirza

    Not sure I understand your question - are you just trying to divert traffic from mywordpressdomain.com to myaffiliatedomain.com? If so you can do this with a PHP header command as follows:

    <?php
    header( 'Location: http://www.yoursite.com/new_page.html' ) ;
    ?>

    You can get more information about using the PHP header command at PHP: header - Manual .

    If you need help implementing this please let me know.

    Bill
    {{ DiscussionBoard.errors[496137].message }}
    • Profile picture of the author GreenEyes
      This looks like the easiest way...but, I'm not entirely sure HOW to do this. I'm writing this mostly to say thank you for the info and I will check out the manual you sent next. If I still need help I'll let you know.

      Thanks again!

      Originally Posted by mywebwork View Post

      Aloha Mirza

      Not sure I understand your question - are you just trying to divert traffic from mywordpressdomain.com to myaffiliatedomain.com? If so you can do this with a PHP header command as follows:

      <?php
      header( 'Location: http://www.yoursite.com/new_page.html' ) ;
      ?>

      You can get more information about using the PHP header command at PHP: header - Manual .

      If you need help implementing this please let me know.

      Bill
      Signature
      Mirza
      {{ DiscussionBoard.errors[498029].message }}
    • Profile picture of the author GreenEyes
      OH and Yes, that is what I'm trying to do. I want to re-direct my domain which is now on WordPress to my affiliate landing page.

      I'd like to add my own content, but SEO takes time. So, in the meantime, I'd like to just re-direct my domain to my affiliate page and I have a way to use YouTube to drive traffic in the meantime.

      Meaning, while I'm waiting on some articles to be written.

      Hope that makes sense.

      Originally Posted by mywebwork View Post

      Aloha Mirza

      Not sure I understand your question - are you just trying to divert traffic from mywordpressdomain.com to myaffiliatedomain.com? If so you can do this with a PHP header command as follows:

      <?php
      header( 'Location: http://www.yoursite.com/new_page.html' ) ;
      ?>

      You can get more information about using the PHP header command at PHP: header - Manual .

      If you need help implementing this please let me know.

      Bill
      Signature
      Mirza
      {{ DiscussionBoard.errors[498043].message }}
  • Profile picture of the author Ross Dalangin
    Here's my tutorial in using FTP:

    Using Core FTP to Transfer Files : Make Money Online With Ross Dalangin| Money Making Online Opportunities

    You can use that to transfer or delete files from your server. Be sure you delete or modify only the files inside the public_html folder.

    If you have cpanel and have fantastico the find for wordpress and remove the installed wordpress on your site.

    Another way is to rename the index.php and create a new index.php then put the suggestion of Bill to any page or URL you want.
    {{ DiscussionBoard.errors[496185].message }}
    • Profile picture of the author GreenEyes
      Hi Ross, Thanks for the info. However...this part I don't get.

      (then put the suggestion of Bill??? to any page) I have no idea what that means. lol sounds like greek to me! :confused:

      I'm hosting with Host4Profit and so I don't have a cpanel or fantastico.

      hmmmmm....
      not sure what to even ask here at this point. But I will check out your links. Thanks!

      Originally Posted by Ross Dalangin View Post

      Another way is to rename the index.php and create a new index.php then put the suggestion of Bill to any page or URL you want.

      Originally Posted by Ross Dalangin View Post

      Here's my tutorial in using FTP:

      Using Core FTP to Transfer Files : Make Money Online With Ross Dalangin| Money Making Online Opportunities

      You can use that to transfer or delete files from your server. Be sure you delete or modify only the files inside the public_html folder.

      If you have cpanel and have fantastico the find for wordpress and remove the installed wordpress on your site.

      Another way is to rename the index.php and create a new index.php then put the suggestion of Bill to any page or URL you want.
      Signature
      Mirza
      {{ DiscussionBoard.errors[498055].message }}
    • Profile picture of the author GreenEyes
      Originally Posted by Ross Dalangin View Post

      Another way is to rename the index.php and create a new index.php then put the suggestion of Bill to any page or URL you want.
      Oh, ha ha, I see what you were saying here. Okay, that was embarrassing! lol

      How's that go again?... Learn something new everyday!

      Thanks again!
      Signature
      Mirza
      {{ DiscussionBoard.errors[505919].message }}
  • Profile picture of the author mywebwork
    Hi Mirza

    Let me clarify:

    Suppose you have a domain, mydomain.com, and you want all traffic sent to that domain to be immediately sent to myaffiliatelink.com/index.php?id=123456 ( the 123456 is your affiliate ID in this example).

    Open a text editor such as Notepad and create a new text file with the following:


    <?php
    header( 'Location: http://myaffiliatelink.com/index.php?id=123456' ) ;
    ?>


    Save this file as "index.php".

    Now FTP the file to the root (public_html folder) of the mydomain.com domain. Make sure there is no existing "index.html" file.

    This will cause all traffic sent to mydomain.com to be rerouted to myaffiliatelink.com/index.php?id=123456.

    Hope this clears this up, please feel free to PM me if you need help with this.

    Aloha

    Bill
    {{ DiscussionBoard.errors[499938].message }}
    • Profile picture of the author GreenEyes
      Originally Posted by mywebwork View Post

      Hi Mirza

      Let me clarify:

      Suppose you have a domain, mydomain.com, and you want all traffic sent to that domain to be immediately sent to myaffiliatelink.com/index.php?id=123456 ( the 123456 is your affiliate ID in this example).

      Open a text editor such as Notepad and create a new text file with the following:


      <?php
      header( 'Location: http://myaffiliatelink.com/index.php?id=123456' ) ;
      ?>


      Save this file as "index.php".

      Now FTP the file to the root (public_html folder) of the mydomain.com domain. Make sure there is no existing "index.html" file.

      This will cause all traffic sent to mydomain.com to be rerouted to myaffiliatelink.com/index.php?id=123456.

      Hope this clears this up, please feel free to PM me if you need help with this.

      Aloha

      Bill
      Hi Bill,
      This looks perfect. Thank you very much. I'll give it a go and if I have any trouble I'll pm you.

      Thanks again!
      M
      Signature
      Mirza
      {{ DiscussionBoard.errors[503943].message }}
  • Profile picture of the author RobinInTexas
    If you are asking about Financial-Freedom101.com that does not appear to be compatible with wordpress.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[501113].message }}
    • Profile picture of the author GreenEyes
      Originally Posted by RobinInTexas View Post

      If you are asking about Financial-Freedom101.com that does not appear to be compatible with wordpress.

      Hi RobinInTexas,

      Thanks for checking but actually my question is for another domain I have but since it's not ready I don't have it in my signature just yet.

      Not sure I ever will because it's sort of in the naughty niche. ha ha!
      I haven't made up my mind yet. Guess it depends on how well it comes out.


      Thanks anyway!
      GreenEyes
      Signature
      Mirza
      {{ DiscussionBoard.errors[503964].message }}
      • Profile picture of the author RobinInTexas
        Originally Posted by GreenEyes View Post

        Hi RobinInTexas,

        Thanks for checking but actually my question is for another domain I have but since it's not ready I don't have it in my signature just yet.

        Not sure I ever will because it's sort of in the naughty niche. ha ha!
        I haven't made up my mind yet. Guess it depends on how well it comes out.


        Thanks anyway!
        GreenEyes
        Depending on the registrar, you can probably handle that at the registrar, for an example of what I mean go to
        Code:
         http://proxy-cgi.com
        and you will get what I mean (it brings you back to the warrior forum with my referrer link embedded) I can't put a hot link here because the forum software decripts the forward.

        If that is what you are looking for and need help PM me or YahooIM
        Signature

        Robin



        ...Even if you're on the right track, you'll get run over if you just set there.
        {{ DiscussionBoard.errors[504280].message }}
  • Profile picture of the author rosesmith
    Hi...........,
    I think I am sure that there are many ways to redirect a domain name to another URL. Recently I did this very easily on NameCheap.com. I am sure other places such as GoDaddy.com offer this service, but doing it in NameCheap.com was simple. All you have to do is log into your NameCheap.com account, click on manage account, manage domains, and then select the domain name you want to manage. From there simply click on URL Forwarding.
    {{ DiscussionBoard.errors[509251].message }}
    • Profile picture of the author GreenEyes
      Originally Posted by rosesmith View Post

      Hi...........,
      I think I am sure that there are many ways to redirect a domain name to another URL. Recently I did this very easily on NameCheap.com. I am sure other places such as GoDaddy.com offer this service, but doing it in NameCheap.com was simple. All you have to do is log into your NameCheap.com account, click on manage account, manage domains, and then select the domain name you want to manage. From there simply click on URL Forwarding.
      Yeah! Finally, my domain is redirecting just fine!

      I was all ready to use Bill's code and yes that would have worked but when I got into my panel, low and behold there was a link big as day, "REDIRECT" Jeez!

      Sorry guys for all the trouble. BUT, I learned a lot from all your comments and instructions. I'm a lot smarter today than just a week ago!!

      And hopefully someone else (someone did already) will be helped as well.

      Thanks again!
      Signature
      Mirza
      {{ DiscussionBoard.errors[520302].message }}
  • Profile picture of the author codecre8r
    The easiest way to redirect your entire site to your affiliate landing page is with a 301 redirect.

    The PHP method that was mentioned earlier will only redirect the home page to your affiliate landing page. If anyone comes into your site from a search engine to a blog post or some other page, they will still see your blog (or a 404 Not Found if you deleted everything).

    This is the most effective method to redirect your site to another URL.

    I will PM you the code because I can't post a link yet.
    {{ DiscussionBoard.errors[510592].message }}
    • Profile picture of the author GreenEyes
      Originally Posted by codecre8r View Post

      The easiest way to redirect your entire site to your affiliate landing page is with a 301 redirect.

      The PHP method that was mentioned earlier will only redirect the home page to your affiliate landing page. If anyone comes into your site from a search engine to a blog post or some other page, they will still see your blog (or a 404 Not Found if you deleted everything).

      This is the most effective method to redirect your site to another URL.

      I will PM you the code because I can't post a link yet.
      Actually, for the domain in question, that's all it is, a domain. There's nothing else on it. No post, no pages, notta, zip.

      So in that case, I should be able to use the first set of instructions, right?
      Signature
      Mirza
      {{ DiscussionBoard.errors[518024].message }}
      • Profile picture of the author RobinInTexas
        The php redirect will work just fine, If you have that set up and working, you are done until you want something different.

        Signature

        Robin



        ...Even if you're on the right track, you'll get run over if you just set there.
        {{ DiscussionBoard.errors[519690].message }}
        • Profile picture of the author GreenEyes
          Originally Posted by RobinInTexas View Post

          The php redirect will work just fine, If you have that set up and working, you are done until you want something different.

          Hi Robin,

          Well, I am definitely going to want something different, but for now I just want to start making some money. So when I have enough articles ready, meaning first, know how to navigate WP a bit more and I would like to have about 15 or so pages ready and know where my links are going to go, then....it should be easy enough to stop the redirect and start adding pages? Right?

          Also, is it true that you should only add a few pages a day and not add 20 or 30 in one day? Something to do with Google and ranking over time? The idea makes sense to me, I'm just not really sure why or how it's better. That's if it even is. (makes sense?)
          Signature
          Mirza
          {{ DiscussionBoard.errors[520340].message }}
          • Profile picture of the author GB2008
            To add to this - the 301 redirect is for pages that you have moved permanently - it tells the search engines to always look in the new place from here on. So if this is a temporary measure, I would use the PHP solution.
            Signature
            {{ DiscussionBoard.errors[520353].message }}
  • Profile picture of the author codecre8r
    Okay, can't send PM's yet either, lol.

    This is how you do it:

    Just edit your .htaccess file (in the root folder) and add this line:

    Redirect 301 / URLToYourPageHere

    Replace URLToYouPageHere with the full link to your affiliate page. It must include the http colon slash slash.
    {{ DiscussionBoard.errors[510605].message }}
    • Profile picture of the author GreenEyes
      Originally Posted by codecre8r View Post

      Okay, can't send PM's yet either, lol.

      This is how you do it:

      Just edit your .htaccess file (in the root folder) and add this line:

      Redirect 301 / URLToYourPageHere

      Replace URLToYouPageHere with the full link to your affiliate page. It must include the http colon slash slash.
      hehe, I was just about to say, you won't be able to pm either. But I see you figured that out. I couldn't wait to get my posting count up because of that. I know the rule is in place for good reason, but it was still frustrating, huh?!

      Anyway, thanks for the directions! You and everyone who has posted instructions for me. It's still not done yet, but that's due to my busy work schedule this past week. It's 1030pm and I'm just now getting around to trying it out.

      I'll be back to let you know either way on how it works out for me.

      Thanks again!
      Signature
      Mirza
      {{ DiscussionBoard.errors[518007].message }}
  • Profile picture of the author RobinInTexas
    If what you trying to do is redirect your domain, lets use "greeneyes.com" for sake of discussion and you want to redirect greeneyes.com to http://xxxyourClickBankId.earth4.hop.clickbank.net/ until you finish building a WP website at greeneyes.com, it gets complicated.
    The php redirect needs to use index.php in the web root directory (public_html/) to work.
    Wordpress uses what has to be it's own index.php in the same directory.
    You can work around this by temporarily having your hosting hosting company point greeneyes.com to a different subdirectory public_html/anynamewilldo/ and placing your redirect index.php there (do that in cPanel if that's what you have).
    Then you need to create an subdomain maybe construction.greeneyes.com that points to what will later be the permanent home which probably is public_html/
    Once you do that, you need to tell wordpress settings->general that your wordpress address & blog address are http://construction.greeneyes.com
    When you are done building, you need to undo the redirects and change the wordpress settings above removing "construction."
    I am pretty sure all this will work, it might depend on how your hosting is set up, and I have not tested my theory. You can PM me if you are stuck.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[520752].message }}

Trending Topics