Support » Fixing WordPress » Redirect old subdomain to new subfolder/subdirectory

  • Simply put, I need people who visit to be redirected to

    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!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • If your host as C-Panel, you should be able to make a permanent 301 redirect from there.

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

    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:“);

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect old subdomain to new subfolder/subdirectory’ is closed to new replies.