• Hello, hopefully helpful readers! So, in short, I’m suffering from Yahoo-hosting-woes. I have WordPress installed and running, but their wizard doesn’t allow root install and so I’ve installed it in a sub-directory and need to move it to the root to get away from the ugly “/blog” permalinks. However, according to my server, they DO NOT SUPPORT the mod_rewrite Apache module & I understand may be related to the ugly link issue? Possibly maybe? Either way, if anyone has any experience with this server or can offer guidance in how the move from sub-directory to root folder, please let me know. Right now I do have the index.php home page, but every other page is being saved as “…/blog/page”.

Viewing 6 replies - 1 through 6 (of 6 total)
  • http://codex.wordpress.org/Moving_WordPress
    you will need to move your blog to root following the instructions

    also http://go.rvoodoo.com/WPurl
    has more info about moving

    you can get rid of /blog in your url that way. But without mod_rewrite you may not be able to get permalinks working right so you may always have

    domain.com/?p=342

    Thread Starter sdentonbrown

    (@sdentonbrown)

    Thanks for your response, Rev. Voodoo (great name, by the way)! I am curious, though… Right now, I am on step 9 (of the wordpress codex page you referenced). Everything has been physically moved from the “blog” folder to the root, but I’m seeing that there’s another index.php file within the blog folder that the Yahoo WordPress install wizard has installed there in addition to the index.php file it also installed in the root. Checking the code in these pages, they’re both different and of course I can’t have them both in the root folder under the same name. Any advice on that?

    if you are moving all the files to root, you will want the default one that comes with Wp

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

    Thread Starter sdentonbrown

    (@sdentonbrown)

    Very helpful. Thank you. Now, at this point, I think I’ve gotten to everything. Regarding step 12, the WordPress dashboard through Yahoo does not have a “Misc.” option under settings, so I haven’t done anything with that. New pages do seem to be saving into the root folder (like I wanted) when I create them. The problem NOW is that every page is coming up with an error of “the website can not display the page” and I’m finding that I’m not seeing any of the new pages I create within my FTP file manager… 🙁 And of course there’s the “/?page_id=11” type thing still going on.

    Thread Starter sdentonbrown

    (@sdentonbrown)

    Oh, and I was also unable to see an .htaccess file anywhere.

    the misc settings are now in settings->media, codex needs update

    you won’t have an .htaccess, unless you set up permalinks, which you can’t if your host doesn’t have mod rewrite unfortunately…as I said in my first post

    You’ll never be able to get rid of “/?page_id=11” without mod rewrite

    New pages do not show up in any ftp file manager, they are in your database. posts and pages are not physical files, they are data

    Do you have your permalinks set to default? If not, that may be your problem. If you don’t have mod rewrite, pretty permalinks don’t work. Set to default and test your pages…..

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Moving WordPress from Sub-directory to Root’ is closed to new replies.