• Hi all,

    For awhile I’ve been running my wordpress site on the free host, byethost. Hence it had the .byethost.com after the name of the site (yoursite.byethost.com). Last week I purchased a domain, to by pass that .byethost.com business (yoursite.com).

    What I want to do is still make the old url available to those that have it bookmarked (over 55% of my viewers are returning visits), but have it automatically “changed” to the new domain. In other words, when they type the old domain, it changes to the new one.

    Is this possible via wordpress, or do I need to do something with my hoster? I also want to be sure that all of the users can still log in etc (and of course the admin)

    Any help appreciated!
    Thanks,
    David.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Create an index.php with the following code:

    <?php
    header("Location: https://www.yoursite.com/"); /* Redirect browser */
    
    exit;
    ?>

    And upload to your byehost.com root folder.

    Thread Starter DavidGMII

    (@davidgmii)

    Thanks for your reply, markgia. Couple questions though: Are you saying the create a new index php, or edit the current one?

    Also, will this still allow users to login and comment like before? Thanks.

    No problem David.

    Have you transferred your site over to your .com domain or is it still sitting on your byehost account?

    If your site has been transferred to your new domain then nothing should be on your old domain. It would be safe to edit the existing index.php on your byehost.com site. Before you do this can you confirm that the site is fully functioning on your new domain?

    Thread Starter DavidGMII

    (@davidgmii)

    No, see what I did was park the new domain ontop of the byethost.com url, so in effect, both urls work, instead of the byethost.com url redirecting to the new domain. I did try to edit the “site url” within my admin panel, but that messed up users who tried to log in.

    Many thanks and happy 4th!
    David.

    Thread Starter DavidGMII

    (@davidgmii)

    bump.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Switching Domains’ is closed to new replies.