WordPress.org

Ready to get started?Download WordPress

Forums

Blog resolves to IP but not to subdomain pointing at IP (404 error) (2 posts)

  1. stormywhether
    Member
    Posted 6 years ago #

    Morning all.

    Been trying to fathom out a peculiarity afflicting the blog I'm hoping to launch soon.

    Basically, I'm able to view the blog when I go direct to the IP (in this case, 81.21.78.28:81/blog/) but when I go to the subdomain mapped to the IP (blog.aboutrci.co.uk) I get a 404 error.

    I've spoken to the tech guys at the company where our dedicated server is located and they said it's got something to do with the way the blog has been set up. I contested that it couldn't be, since I can resolve the blog to the direct IP address, but they're adamant it's the set up of the blog.

    They said: "If you upload a index.htm page to the subdomain, you will see it is working correctly so I would assume something that WordPress is doing in it's .htaccess file is causing the 404 error."

    I checked the .htaccess file and it's blank.

    Any ideas?

  2. ixlplicht
    Member
    Posted 6 years ago #

    I had a similar problem after having to set up my server again. Three things need to be configured properly. Any one of them will cause your error

    -- Properly configure your subdomain in Apache (proper use of virtual server tags);

    -- Go to the WP admin menu. Under the options tab, the WordPress address and blog address should both be the URL on your subdomain for the blog

    -- If you're using mod ReWrite and your blog is on the root of the subdomain, make sure RewriteBase is set to "/" (without quotes).

    Another couple of possibilities (bur probably not your problem)...

    -- DNS entries need to be made for your subdomain. Whoever handles the DNS chores for your domain should be able to do this simply

    -- The directory your subdomain is located at must have appropriate permissions and ownership to be viewed over the web.

    The first three items are the most likely source of your trouble.

Topic Closed

This topic has been closed to new replies.

About this Topic