Title: Javascript redirect and seo
Last modified: August 21, 2016

---

# Javascript redirect and seo

 *  [bloug](https://wordpress.org/support/users/bloug/)
 * (@bloug)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/javascript-redirect-and-seo/)
 * Hi. I have many sites installed in subfolders. I redirect from the root using
   javascript window.location.
 * From a seo perspective:
 * 1-Should I replace that with the method of moving the index.php and htaccess 
   file to the root?
 * 2- And does it matter if the sitemap is in the subfolder (registered as is in
   webmaster tools)
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [paka](https://wordpress.org/support/users/paka/)
 * (@paka)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-redirect-and-seo/#post-4531762)
 * And you realy do all this on your local computer?
 *  Thread Starter [bloug](https://wordpress.org/support/users/bloug/)
 * (@bloug)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-redirect-and-seo/#post-4531836)
 * No, on a shared server.
 *  [congnghevps](https://wordpress.org/support/users/congnghevps/)
 * (@congnghevps)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-redirect-and-seo/#post-4531840)
 * You should use htaccess to redirect with 301 redirect code, It’s good for seo.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Javascript redirect and seo’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 3 replies
 * 3 participants
 * Last reply from: [congnghevps](https://wordpress.org/support/users/congnghevps/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-redirect-and-seo/#post-4531840)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
