WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Do I Need to Move My WordPress Install to Root? (8 posts)

  1. jondiener
    Member
    Posted 4 years ago #

    OK, so a few weeks back I created my WordPress blog and some related pages (About, etc.) and it is installed in the "mydomain.com/blog" directory. Everything is working fine.

    What I would like to end up with is another page (landing page, for lack of a better term) that people would initially see when visiting "mydomain.com". Then be able to link to my blog, at it's current location in /blog directory, as well as a Music page (with possible sub-pages) in a /Music directory, and finally, my PhotoShelter site incorporated into things at /Photo directory.

    So do I need to move my WP install to the root of my domain to accomplish this? If so, can I still have the blog at mydomain.com/blog like I do now? With my current setup, I can't create anything on my WP setup higher than the /blog level.

    Does this make any sense? Thanks in advance for any advice on this.

  2. MichaelH
    Member
    Posted 4 years ago #

    If you would like to access WordPress at http://mydomain.com in Settings->General, change the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the blog folder)

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');
    ?>

    Then update your permalinks by visiting Administration > Settings > Permalinks and clicking on Save Changes.

  3. jondiener
    Member
    Posted 4 years ago #

    I tried this, and now my blog has lost all CSS and I can't log in to my admin pages to reset anything.

  4. MichaelH
    Member
    Posted 4 years ago #

    The use phpMyAdmin on your wp_options table and set both values in siteurl and home to http://yourdomain.com/blog That should enable you to browse to http://yourdomain.com/blog to see your blog.

    siteurl is your WordPress address (URL) and home is your Blog Address (URL).

    And, some other info:
    http://www.tamba2.org.uk/wordpress/site-url/

  5. jondiener
    Member
    Posted 4 years ago #

    Michael,

    I appreciate all your help on this, but I'm afraid installing and using phpMyAdmin is beyond my comfort factor. I may just have to re-install WordPress and start over, unless there are any other options.

    Thanks again for your assistance.

  6. jondiener
    Member
    Posted 4 years ago #

    Michael,

    One more thing... I do have a backup file wordpress.sql from before I attempted to make the original modifications above. I checked it and the 'siteurl' and 'home' values are correct with http://yourdomain.com/blog. Is there a way to substitute this correct backup for the one on the server? I don't see it anywhere when looking through the installed files via FTP client.

  7. Most hosting providers offer phpMyAdmin through their control panel. You should contact them before starting over.

  8. jondiener
    Member
    Posted 4 years ago #

    Yep. I was poking around on GoDaddy's Hosting Control Center and found phpMyAdmin capabilities there. After some false starts with usernames and passwords, I finally got into my database and edited wp_options with the proper siteurl and home values, as Michael suggested above.

    Boom! I'm back in business! Thanks for all the help, guys!

Topic Closed

This topic has been closed to new replies.

About this Topic