Setting Up Wordpress on an Addon Domain

Written by sean on June 15, 2008 – 2:43 pm -

This weekend I was working to setup a new blog that I have been getting ready.  I had the wordpress installation all set and ready to go and I ordered the domain name from GoDaddy.com.  I then pointed the new domain at the directory on the webserver that would be hosting the new site and set it up as an addon domain.  Everything looked good until I tried to navigate to the site.

When I actually when to the new site (we’ll call it addon.com) it redirected me to the front page of seanelavelle.com.  Now I know that the new blog was set up correctly on the webserver at http://seanelavelle.com/addon/ and the DNS record should point to the subdomain as addon.seanelavelle.com, but going to that address also seemed to redirect me to the main site.  I was at a loss.

After talking to Bluehost support we determined the problem was not DNS, but the Wordpress installation.  More after the jump

It turns out that Wordpress is picky about where it actually lives, and if you are putting it somewhere else you need to explicitly tell it that or it is going to assume it is at the root webdirectory. And for 99% of the cases this is fine.  But if you are hosting multiple blogs on multiple domains over the same site, you need to give it a little more instruction.

The good news is that this is accomplished very easily and there is no coding or mucking around through Wordpress internals.  Just go to the new blog in the Admin section and choose:

Settings->General Settings

Put the URL of new doing in the two URL boxes.  Once you save it, it should work fine.  One thing I have found is that the new URL will need to be http://addon.com instead of http://www.addon.com because Wordpress doesn’t like the redirects the webserver does.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati
  • Facebook
  • Fark

Tags: ,
Posted in Blogging, Tech, Web |

Leave a Comment

You must be logged in to post a comment.

RSS

  • View Sean Lavelle's profile on LinkedIn
    Add to Technorati Favorites
    My Resume
    WebDOCPDF
    RTFODTTXT
    powered by emurse

  •  

    June 2008
    M T W T F S S
    « May   Jul »
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    30