WordPress.org

Support

Support » How-To and Troubleshooting » Can I move files from /blog to the root?

Can I move files from /blog to the root?

Viewing 15 replies - 1 through 15 (of 22 total)
  • How would I go about doing this?

    See either Moving_WordPress or Giving_WordPress_Its_Own_Directory.

    I just notice a lot of wp.org users have their url ending with ‘.com’ instead of ‘.com/blogs’. How is this done?

    They either use the second link’s method (above) or — more often — simply install WordPress at the root instead of a sub-directory.

    I will work with those links above. Thank you much!

    DOH! Everything looked fine but now I am getting that funky white/blue screen with the page not found error when I click on one of my pages ‘about’.

    I moved everything to the /wordpress folder. I also updated and edited the index file just like the link instructed to do. However I could not find a .htaccess file in my directory. Could this be part of the problem? I’m not really that familiar with Permalinks and what functions they serve.

    You are using pretty permalinks, so you do need/have an .htaccess file. This file is normally invisible, so you have to set your ftp program to show invisibles.

    Thank you, understood. I did read up on that a bit and since I am using Yahoo Small Business hosting I am denied from adding that file to my root or anywhere for that matter! Trust me, I tried it using FileZilla.

    If I don’t need to mess with an .htaccess file then why is my site not functioning correctly if I followed this link’s instructions?
    Do I need to change any coding within my “pages” to make them appear again an function under the new /wordpress directory? Seems as if some parts of the site are reverting back to the /blog directory.

    Do I need to change anything in phpMyAdmin so that all the links on my page will work again?

    Also I noticed a discrepancy between the two instructions:

    This one calls for the blog address to be http://example.com and the wordpress address to be //example.com/wordpress (this is what I followed)
    -In the box for WordPress address (URL): change the address to the new location of your main WordPress core files. Example: http://example.com/wordpress
    -In the box for Blog address (URL): change the address to the root directory’s URL. Example: http://example.com

    And this one calls for the addresses to be the SAME:
    -In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
    -In the box for Blog address (URI): change the address to the new location, which should match the WordPress address (URI).

    which one is correct for my situation?

    Anyone?

    I have no .htaccess file on my FTP and I have SHOW HIDDEN FILES active. None of the links on my site are working anymore after moving my /blog files to /wordpress in my directory. I have been following these instructions

    AM I OUT OF LUCK??

    Just got off the phone with Yahoo. They said their “hands are tied” because I am not allowed to alter or upload a .htaccess file.
    They suggest I delete my blog and start over!!

    Currently, the only thing working on my site is my homepage. All my permalinks are down and I cannot, repeat cannot, change or even find the .htaccess file. This is all due to me moving my files to another directory as described here

    Does anyone know a way around this? I am begging you.
    I do not want to delete and start over, it seems ridiculous.

    What happens if you switch back to the default permalinks?

    Have you tried moving your entire blog to root? If you are using the site for noting else, then that shouldn’t be a problem. See the second video in the following post:

    How to Move WordPress from a Subdirectory to Root and Vice-Versa

    Iridiax- I switched back to default and then cleared my cache and cookies and the links are FINALLY working. However, does this mean I am stuck with default permalinks for life? I’m afraid to change anything else now. :/

    Figaro- AMAZING video. I am bookmarking your site.

    Thank you all. I believe I am resolved after all this.

    Whew…time for a drink…haha…

    whooami

    @whooami

    Member

    yahoo has their own plugin for pretty permalinks. I can get a copy if you cant locate it.

    Whooami-oh wow…that would be great! The person I spoke to at Yahoo didn’t let me know that

    Figaro- Just double checking, I need to change all instances of the old ‘/blog’ sub directory in my database to the new ‘/worpress’ directory?

    before moving the blog, there is a quick and dirty solution

    in the root directory of your site(not the blog/ directory), replace the contents of your default index page with… (again, this is not the index page within the blog/ folder, but the top level index.php in the site root)

    <?php
    define(‘WP_USE_THEMES’, true);
    require(‘./blog/wp-blog-header.php’);
    ?>

    replace /blog/ with whatever your blog directory is called.

    that’s it.

    from then on when you type your url http://www.sassandperil.com that root index page will show your blog index page without the http://www.sassandperil.com/blog url.

    however, this changes nothing within wordpress itself, so when you are in your blog any links you have going to your home page.. will STILL go to the original http://www.sassandperil.com/blog

    Figaro- Just double checking, I need to change all instances of the old ‘/blog’ sub directory in my database to the new ‘/worpress’ directory?

    Only if you are moving your install from sassandperil.com/blog to sassandperil.com/wordpress. If you are moving it to root, then you would change it from sassandperil.com/blog to sassandperil.com

    Again, I would only do this if you don’t plan to use the site for anything but you blog…if you are going to have other things running in root, then I would keep the blog in a subdirectory.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Can I move files from /blog to the root?’ is closed to new replies.
Skip to toolbar