• Resolved jondiener

    (@jondiener)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you would like to access WordPress at https://mydomain.com in Settings->General, change the Blog address (URL) to https://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.

    Thread Starter jondiener

    (@jondiener)

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

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

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

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

    Thread Starter jondiener

    (@jondiener)

    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.

    Thread Starter jondiener

    (@jondiener)

    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 https://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.

    Moderator James Huff

    (@macmanx)

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

    Thread Starter jondiener

    (@jondiener)

    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Do I Need to Move My WordPress Install to Root?’ is closed to new replies.