• Hello everyone,

    I need to do something that is probably really simple. On my godaddy hosting I have several wordpress websites, each on their own folder (see below).

    https://www.mydomain.com/site1
    https://www.mydomain.com/site2
    https://www.mydomain.com/site3

    I hope this is not too confusing. Site1 was my original website. Months later I decided to overhaul the site so I created a new wordpress installation on a new directory (site2). I didnt want to deal with redirecting (the right way) so I just edited the index.html file and added these lines of code:

    <HEAD>
    <meta HTTP-EQUIV=”REFRESH” content=”0; url=https://www.mydomain.com/site2″>
    </HEAD>

    This would redirect https://www.mydomain.com to https://www.mydomain.com/site2. Not the best solution but I learned to live with it.

    Now I created https://www.mydomain.com/site3 and instead of editing the file index.html and redirecting to this new address I want to be able to access it by visiting https://www.mydomain.com. Im not really sure where to start or what to search on google. I figured since I am running wordpress websites I could find help here.

    Btw, my hosting is godaddy.com.

    Thanks in advanced!

    Alex

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter avillabon

    (@avillabon)

    forgot to mention, the index.html file I mentioned is hosted at the root:

    https://www.maydomain.com/index.html

    Since the domain is already pointed at the hosting account, all you need to do is map the domain to the correct sub directory. At Go Daddy, you can do that in the hosting admin panel. Then change the site address and home page url in WP settings ? general.

    Thread Starter avillabon

    (@avillabon)

    Im sorry but could you be more specific?

    Im sure the answer is there, I just dont understand what you are saying.

    You have to look in your GD hosting account for the place where you added the “primary domain”. There you can specify which directory on the server you want the domain pointed at. Now you have it set to /site1/. Change that to /site3/.
    Then in the WP dashboard for “site3” go to settings ? general and change the site url and site address.

    Thread Starter avillabon

    (@avillabon)

    I just realized originally I had “site1” installed to the root of the domain, not a folder inside the root.

    I went to my cpanel and under my domains I see that the primary domain (which is the one I want to use) has the option to edit it greyed out. All other domains have the option of redirecting to a specific folder but not the main domain.

    What I am trying to get at is the fact that the domain was never pointing to “site1” since that one lived on the root of the ftp.

    Is it possible godaddy doesnt let you do that at all with primary domains?

    I would call them but I am out of the US at the moment.

    Thanks for your helps so far.

    It sounds like the primary domain was pointed at the root so not sure what you mean by “the domain was never pointing to “site1″”. At the moment I can’t log into GD for the answer but I’m pretty sure you will find it if you search their help files for “map primary domain”.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect website’ is closed to new replies.