WordPress.org

Ready to get started?Download WordPress

Forums

Redirect website (7 posts)

  1. avillabon
    Member
    Posted 5 months ago #

    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).

    http://www.mydomain.com/site1
    http://www.mydomain.com/site2
    http://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=http://www.mydomain.com/site2">
    </HEAD>

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

    Now I created http://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 http://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

  2. avillabon
    Member
    Posted 5 months ago #

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

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

  3. webbrewers
    Member
    Posted 5 months ago #

    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.

  4. avillabon
    Member
    Posted 5 months ago #

    Im sorry but could you be more specific?

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

  5. webbrewers
    Member
    Posted 5 months ago #

    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.

  6. avillabon
    Member
    Posted 5 months ago #

    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.

  7. webbrewers
    Member
    Posted 5 months ago #

    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".

Reply

You must log in to post.

About this Topic

Tags

No tags yet.