Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm hosting my WordPress blog with a separate host server (Dreamhost) with a static IP address. I changed the A record for blog.domain.com to the static IP address.

Now, blog.domain.com is mapped to my WordPress install, but only the homepage. If I go to any other page, it's IP Address/article-title.

What am I doing wrong?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

Do you mean your homepage links you to http://your.ip-adress/whatever? If so, the problem is in your wordpress config. Teach it about your blog.domain.com.

share|improve this answer
    
blog.subdomain.com goes to blog.subdomain.com. All the links on blog.subdomain.com are pointed to ip-address/whatever. –  James Mar 28 '13 at 16:15
    
So, teach your wordpress install not to do that. This is not a DNS problem, but a problem in your wordpress config. –  Dennis Kaarsemaker Mar 28 '13 at 16:16
    
Thanks for your help so far. I do have the WordPress Address URL set as blog.domain.com, but I didn't change the Site Address URL. Should I change that, or should I just rewrite the URLs in .htaccess? –  James Mar 28 '13 at 16:21
    
You need to change the site url. This is all done when generating the pages, so nothing besides wordpress has anythong to do with it, not htaccess, not dns. Only wordpress. –  Dennis Kaarsemaker Mar 28 '13 at 16:26
    
Thanks for taking the time to answer what was a stupid question in hindsight. –  James Mar 28 '13 at 16:34

An A record only points a root domain or sub domain (ex. mydomain.com or blog.mydomain.com) to an IP address. Any redirection that has to do with folders, protcols or ports, is dealt with by either the webserver (apache or similar) or by the webpage code itself.

As Dennis commented on, this seems to have some issues regarding the configuration/installation on the wordpress side. I would start by looking at the site's url configuration and functions url configuration, as per the following post:

http://codex.wordpress.org/Changing_The_Site_URL

share|improve this answer
    
Thanks for the answer and providing a link. I'd give you an upvote if I could. –  James Mar 28 '13 at 16:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.