How to re-direct my WP subdomain to main domain? (4 posts)

  1. Tentative
    Posted 7 years ago #

    Hi everyone,

    I have a certain specific question on which i don't know the answer to.
    I'll try and explain it as simple as possible:

    I have a WP blog which is on this location

    I now want to re-direct this sub-domain to the main domain.

    So i actually need to have a way that the main domain will re-direct
    the users typing in: http://www.domainname.com to blog.domainname.com so they
    will enter my Blogs.

    How can i make this happen? Ideas? Codes? Links? My friend and i are
    looking for the answer, but we couldn't find much to go on.

    Thanks in advance!

  2. MrCardinal
    Posted 7 years ago #

    Make an index.html file with the following code in it and upload it to the root directory of http://www.yourdomain.com:

    <meta http-equiv="Refresh" content="0; url=http://blog.domainname.com"></head>
    <a href="http://blog.domainname.com">Click here if not redirected to website.</a>
  3. MrCardinal
    Posted 7 years ago #

    Tentative probably wants to just register the domain and have free hosting with a subdomain somewhere else. If that's the case and he hasn't already registered the domain, he can go to GoDaddy and just register a domain and have it point to his blog address. Then he wouldn't even have to upload a redirect index.html page (although if he only registers the domain and doesn't get any hosting, he won't be able to uploading anything).

Topic Closed

This topic has been closed to new replies.

About this Topic