How to Redirect WP Domain to a Landing Page?

by 21 replies
26
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!
#website design #domain #landing #page #redirect #redirect urls #wordpress
  • 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
    • [ 1 ] Thanks
    • [2] replies
    • 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!

    • 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.

  • 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.
    • [ 1 ] Thanks
    • [2] replies
    • 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!


    • 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!
  • Banned
    [DELETED]
  • 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
    • [1] reply
    • 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
  • If you are asking about Financial-Freedom101.com that does not appear to be compatible with wordpress.
    • [1] reply

    • 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
      • [1] reply
  • 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.
    • [1] reply
    • 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!
  • 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.
    • [1] reply
    • 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?
      • [1] reply
  • 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.
    • [ 1 ] Thanks
    • [1] reply
    • 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!
  • If what you trying to do is redirect your domain, lets use "" for sake of discussion and you want to redirect to until you finish building a WP website at , it gets complicated.
    The php redirect needs to use in the web root directory () to work.
    Wordpress uses what has to be it's own in the same directory.
    You can work around this by temporarily having your hosting hosting company point to a different subdirectory and placing your redirect there (do that in cPanel if that's what you have).
    Then you need to create an subdomain maybe that points to what will later be the permanent home which probably is
    Once you do that, you need to tell wordpress settings->general that your wordpress address & blog address are
    When you are done building, you need to undo the redirects and change the wordpress settings above removing ""
    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.
    • [ 1 ] Thanks

Next Topics on Trending Feed