• Is it possible to move Worpdress install up a folder, but still keep the web addresses of all existing content, so that Google can still keep those pages indexed?

    So, for example, if all posts have the URL:

    mysite.com/blog/

    and an example post is:
    mysite.com/blog/my-post

    If I moved WP up one folder to
    mysite.com/

    is there a way to keep my-post url:

    mysite.com/blog/my-post

    and not have it change to:
    mysite.com/my-post

Viewing 4 replies - 1 through 4 (of 4 total)
  • is there a way to keep my-post url:

    mysite.com/blog/my-post

    and not have it change to:
    mysite.com/my-post

    Yes, I believe htaccess could redirect that either way…

    ### redirect /my-post/ or /blog/my-post/ (but not both)
    ## select one or the other by removing the preceding #
    #RedirectMatch 301 ^/my-post/$ http://www.mysite.com/blog/my-post/
    #RedirectMatch 301 ^/blog/my-post/$ http://www.mysite.com/my-post/

    I do something like that with one page that has been moved to a different site and with another page that has been renamed, but I do not know how Google actually indexes the results.

    Thread Starter marbler

    (@marbler)

    Thanks for the info – with a 301 redirect, is the idea to move WordPress to the new folder then set up the 301? Also, if you have lots of post in the old folder, it is possible to redirect the entire folder (rather than individual posts??

    It looks to me like the info at the link Christian1012 posted says you can do what you are asking, but are you sure you really need to move your site and then have to redirect everything in the first place? I have my primary domain in a sub-folder right beside the folders for my add-on domains, and that site works exactly like the others except for the fact that it has an extra htaccess in my account’s “root” (where that might be done differently at your own host).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress and Google’ is closed to new replies.