WordPress.org

Ready to get started?Download WordPress

Forums

Problem with installation of WordPress on an add-on domain (5 posts)

  1. srrobbins
    Member
    Posted 8 years ago #

    Hello everyone,
    I just installed WordPress for the first time on my site. When I attempt to login, I'm getting an HTTP 404 error. The problem seems to have to do with the way that my root directory is being determined. The domain I am using for this blog, robbinsinternational.com, is an add-on domain. The directory structure for NetFirms, my host, is set up so that http://www.robbinsinternational.com resolves to a sub-folder (robbinsinternational/) of the root folder for my main domain. I'm not very familiar with the WordPress setup or with the php function that is used to set the root directory for the blog. Can anyone help me with this?
    As an example of what is happening, I checked the database after I installed WordPress, and here is what is being set in the wp_options table for the option_value field corresponding to the option_name field 'siteurl': http://www.robbinsinternational.com//robbinsinternational/blog
    This should be http://www.robbinsinternational.com/blog , so I need to somehow take out the /robbinsinternational directory that is being included.

    Thanks for any help.

  2. resiny
    Member
    Posted 8 years ago #

    is this cpanel?

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    On the Options page of the Admin screen, set the WordPress Address (URI) to whatever you want that siteurl to be.

    If you can't get to the admin page, just modify the database directly.

  4. moshu
    Member
    Posted 8 years ago #

    Chances are a lot of features will not work properly - WP is very "picky" about domain redirects, add-ons and stuff like that.

  5. srrobbins
    Member
    Posted 8 years ago #

    I changed the database directly, and it still doesn't work. I just recently switched to NetFirms, and it looks like it's doing something strange when it resolves my add-on domain's root directory. For instance, if I create an index.php file in my ../www/robbinsinternational/ directory (which should be the root directory for http://www.robbinsinternational.com), and I put this php code:

    <?php echo $_SERVER['PHP_SELF']; ?>

    the page should show this:

    /index.php

    Instead, it shows this:

    //robbinsinternational/index.php

    Does anyone know where the $SERVER['PHP_SELF'] call is being made in the WordPress code? If I can find that out, I can change the call so that it trims off the excess part where the folder is being added.

    Thanks again.

    Richard

Topic Closed

This topic has been closed to new replies.

About this Topic