Title: WordPress and Google
Last modified: August 21, 2016

---

# WordPress and Google

 *  [marbler](https://wordpress.org/support/users/marbler/)
 * (@marbler)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wordpress-and-google-1/)
 * 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)

 *  [Christian Chung](https://wordpress.org/support/users/christian1012/)
 * (@christian1012)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wordpress-and-google-1/#post-4190859)
 * Use a 301 Redirect:
 * [http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm](http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm)
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wordpress-and-google-1/#post-4190876)
 * > 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](https://wordpress.org/support/users/marbler/)
 * (@marbler)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wordpress-and-google-1/#post-4190968)
 * 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??
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wordpress-and-google-1/#post-4190969)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/wordpress-and-google-1/#post-4190969)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
