Need help? Check out our Support site, then


Help! Moving WP to a subdirectory.

  1. I wanted to do as the title was and now my site isnt working. I did:

    1. Change my wordpress url from mydomain.com to mydomain.com/blog/ in the General settings.

    2. Moved all wp files to /blog and COPIED the index.php and .htaccess to the root folder

    3. changed the root index.php to: require( dirname( __FILE__ ) . '/blog/wp-blog-header.php' );

    I have a static site as my homepage. My root now shows the static site, but without CSS. all internal links work just fine! But none have Css or sidebars/widgets.

    Mydomain.com/blog/wp-admin is an 404 :(

    Please help, how do I fix it?

    The blog I need help with is iamatravelguy.wordpress.com.

  2. P.S. this is not about the wordpress.com blog but another site that uses the server installed version of wordpress.

  3. Hey,

    I'm afraid you're in the wrong support forum. This one is for hosted WordPress.COM blogs, where all the blogs share a common WordPress core and access to files/plugins is not allowed.

    You might find relevant help in WordPress.ORG forums, which deal with self-hosted installs of the WordPress software.

  4. Yes i posted it there. Feel free to chime in if you can help, I would appreciate it.

  5. Couple things to clarify/look at:

    What happens if you go to mydomain.com/wpadmin ?

    Are the permissions on the new directory the same as the old directory?

  6. wp-admin, that is.

  7. root/wp-admin/ is forwarded to root/blog/wp-admin which is a 404!

    WHat is wrong here?

  8. When i connect via ftp there is a www folder where i put the wp files.

    Do I need to put the blog folder with the wp files into the "real" root of the domain?

  9. UPDATE: I made a spelling mistake when I updated the index.php.

    I corrected it and all Blog posts and the subdirectory work fine now!

    One exception: All pages cannot show their images while the blog posts can. Why is that?

Topic Closed

This topic has been closed to new replies.

About this Topic