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

  1. tjyoung82
    Posted 3 years 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
    Posted 3 years ago #

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

  3. tjyoung82
    Posted 3 years ago #

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

  4. Kbemisda
    Posted 3 years ago #

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

    * 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?

Topic Closed

This topic has been closed to new replies.

About this Topic