Are 301 Redirects Possible Using Javascript Or JQuery?
Answer : I know this is an old question but the answers don't really address the primary issue that was presented in the question which is a 301 redirect for SEO purposes (and the answer today may very well be different than it was when the question was originally asked and answered). The answer that no, you can't 301 redirect from the client is technically correct, however (and more importantly) you don't necessarily need to. While a true 301 would be preferred, in cases like this one where it's not possible (or transitioning away from hashbang URLs back to traditional URLs for example), the question is really whether or not there's a viable alternative that accomplishes the goal. Search Engine Land did a detailed test of Google's capabilities regarding JavaScript and this is the related excerpt from that article: JavaScript Redirects We first tested common JavaScript redirects, varying how the URL was represented in different ways. Th...