WordPress.org

Ready to get started?Download WordPress

Forums

Move to subdirectory while maintaining permalinks? (2 posts)

  1. mbotos
    Member
    Posted 6 years ago #

    I'm moving WordPress into it's own directory and would like to maintain by old permalinks off the root (ie. example.com/2008/08/17/post instead of example.com/blog/2008/08/17/post).

    However, it seems the only way to separate the root index from the WordPress index is to set the WordPress Blog Address to example.com/blog, which changes all the permalinks. Is there a better way to do this?

  2. anmari
    Member
    Posted 5 years ago #

    mbotos,
    I just struggled with this and eureka I think I have it.

    My problem was I had the blog directory specified in the DB as .../wp and I was now specifying the blog directory WP_HOME in the wp-config file as up at root level. This meant that the admin option (ie the DB ne) was greyed out - could not update.

    The menu/permalinks were clearly using the DB url, not the one from wp-config.

    So
    1) put permalinks back to something other than what you want, save, check in browser
    2) comment out the wp_home if you have it in the config file
    3) goto admin and change the blog url to your root directory, save
    check in browser
    4) go back and change the permalinks to what you want, save
    check in browser

    I suppose you could also fix in phpmyadmin.
    it finally worked for me!

    PS - I has also done this, but that alone was not enough
    http://wordpress.org/support/topic/189139?replies=24

Topic Closed

This topic has been closed to new replies.

About this Topic