Forums

Redirect old subdomain to new subfolder/subdirectory (4 posts)

  1. tjyoung82
    Member
    Posted 7 months ago #

    Simply put, I need people who visit http://blog.globalhealthbridge.org/ to be redirected to http://www.globalhealthbridge.org/blog/

    That's it! I can't figure it out for the life of me! I've tried reading all kinds of posts on this topic, but still can't seem to figure it out. Please help!

    I used to have the wordpress installation on the subdomain, but moved it to the main domain.

    Now nothing is on the subdomain and I just need the url to redirect permanently.

    Any help would be greatly appreciated! Thank you!!!

  2. beattle
    Member
    Posted 7 months ago #

    If your host as C-Panel, you should be able to make a permanent 301 redirect from there.

  3. tjyoung82
    Member
    Posted 7 months ago #

    I am using 1and1 hosting, which does not use cPanel, unfortunately.

  4. Kbemisda
    Member
    Posted 5 months ago #

    Here is a very simple way to jump to a subfolder.
    Open a simple text editor.
    Paste in this code:

    <?php
    /**
    * Jump to subfolder
    */
    header ("Location: http://www.moneydolist.org/wordpress/");
    ?>

    Change the http: link text to match your site.
    Save as index.php
    Use an FTP app to place this new file in your primary domain folder.

    Simple, no?

Reply

You must log in to post.

About this Topic