Javascript redirects harmful for SEO?
-
Hi Mozzers,
A website deals with some javascript redirects. After some research, It came clear a normal 301 is the best option, but javascript redirects can be useful if you don't have access to a website' server.
Does anyone have experience with javascript redirects? Can they be harmful in any point of SEO?
I would love to hear your thoughts!
-
Hi Paul,
This definitely helps!
Thanks for your answers and the link to the blogpost!
Kind regards,
Jens -
Just to be clear here - you don't need access to the Apache webserver to manage proper redirects. As long as you have folder access to the website (FTP, command line etc) you can generate an htaccess file that will take care of it. (And not having this access means you basically have no real control of the website.)
P.
-
Doing redirects in JavaScript is definitely a "better than nothing" solution, rather than anything that should be recommended. It means placing your trust in something in that is supposed to work work, as opposed to something that definitely will.
I'd make sure there really was no way to do the redirects properly first, before falling back to the last-ditch solution.
Here's a test from a year ago that showed ranking authority was passing through JS redirects, but note all the caveats they include (especially that Bing didn't handle this at all at the time).
https://www.branded3.com/blog/seo-javascript-redirects-evidence-pass-pagerank/Hope that helps?
Paul
-
Hi Roman,
That's basically it. When people don't have access to the Cpanel, Apache or another web server, they can use javascript redirects. But do they pass for example equal link juice as a 301? Or are they any disadvantages on using javascript redirects? So as you said, I would like to hear an opinion on javascript redirects vs apache.
Thanks,
Jens -
Let me understand, you want an opinion of "javascript redirects" vs "apache". So you have access to root file bust you don't have access to the Cpanel or Apache or another web server.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Heroku, Subdomains, redirecting to different servers & SEO
Hi all, I've got a big question. I'm helping out with digital marketing at a non-profit that I volunteer with. We're working on developing an on site blog for our site, because we've realized we need that middle of the funnel content. Our issue has been taking up much of the developers' time & we're really working out the kinks with the system, so I'm trying to alleviate that with a light blog solution. We're considering installing a wordpress site on a separate server from the main site & sending traffic over to that. The primary questions: Do we negatively impact our main site by having a link to a different domain in the topnav? Do we positively impact the main site by developing SEO content on a redirected&masked URL? What are the ramifications of redirecting a subdomain to another server? Would we be better off using something like Ghost? A good example would be: Visit theMainDomain
Technical SEO | | Alternatively.marketing
Click: blog on topnav
Redirect to: theSecondDomain/blog [masked as theMainDomain/blog]
Click: home on topnav
Redirect to: theFirstDomain/blog0 -
SEO for Interspire Relic
Hi All, Does anyone know of optimization best practices for the now largely defunct Interspire Web Publisher? Specifically, I'm looking for a canonical plugin or workaround to try and get rid of a few duplicate content issues (most importantly root vs. index.php). I'd like to just redo the site with a cms that has better support...unfortunately client budget constraints are a little tight at the moment. Thanks!
Technical SEO | | G2W0 -
IP redirect possible SEO issues?
Hi I help manage a small eCommerce business that sells worldwide. We currently have 4 stores www.tidy-books.com (US site) www.tidy-books.co.uk (UK) www.tidy-books.eu (EU) www.tidy-bboks.com.au (AU) We have auto redirect based on the country of your IP. The .com is the route address though. Currently I have decided to focus all my energies with link building etc on .com as it seems to carry the most weight and being a very small team we don't have the resources for separate campaigns for all websites at the moment. Whilst I've done on site SEO with country in mind i.e for US kids instead of children. I'm just wondering if you can see any pitfalls in this approach, Ideally I would like to have a team focus on each store separately and have them as separate domains but with the IP redirect we at least rank well in Google for the .com and the customers gets sent to the relevant store. Any thoughts would be great
Technical SEO | | tidybooks0 -
301 Redirect
Hello, On the 26.2.13 we changed domain names having followed the guidance of both Matt Cutts Youtube videos and googles own online documentation. We have a 301 redirect in place from our old domain ukmotorhomehirerental.com to our new site leisurerentalsdirect.com on a page to page basis. The site structure has not been altered in anyway. Google has been informed of the change of address. After the change the new domain transition was pretty seamless and ranked in the same postion in the SERPsThe one thing I've not done yet is tell all the webmasters who link to the old site that the address has changed (could this be it?)
Technical SEO | | Badapplemedia0 -
Do I need Redirects?
I've recently changed my old static website to a WordPress one. I'd like to know what do do (if anything) about my old links. For example a page on my old site was: www.iainmoran.com/corporate-magician.html - now I'm using WordPress, the url is:
Technical SEO | | iainmoran
www.iainmoran.com/corporate-magician/ My question is, do I need to set up redirects on these old pages (which no longer exist or will Google eventually re-crawl my site and update the links themselves? I'm using the Yoast SEO Plugin for WP and it creates a sitemap, which of course will have my new pages on. But don't want Google to penalise me for having broken links, etc. Many thanks, Iain.0 -
302 Redirects for Minor Pages
301 redirects are clearly preferable to 302 redirects for pages that need to be indexed by search engines. If I have 302 redirects to minor pages not getting much traffic regardless of the code, how important (if at all) is changing the redirects to 301? Thanks!
Technical SEO | | theLotter0 -
Advises for redirects
I worked on a website since 2 years now (mainly link building). Now, I need to change the CMS and the hosting company of this website. In order to improve the SEO of this website, I decided to change the URL structure as well, see example here below: Actual situation: http://www.mywebsite.com
Technical SEO | | Tit
http://walla.mywebsite.com/
http://ortak.mywebsite.com/ http://www.mywebsite.com/de
http://walla.mywebsite.com/de
http://ortak.mywebsite.com/de http://www.mywebsite.com/es
http://walla.mywebsite.com/es
http://ortak.mywebsite.com/es Future situation: http://www.mywebsite.com
http://www.mywebsite.com/walla
http://www.mywebsite.com/ortak http://www.mywebsite.com/es
http://www.mywebsite.com/es/walla
http://www.mywebsite.com/es/ortak http://www.mywebsite.com/de
http://www.mywebsite.com/de/walla
http://www.mywebsite.com/de/ortak Since the hosting, the CMS and the URL’s will change, what you recommend me to do in order to keep a maximum of “link juice” to the pages!? How / Where to setup the 301 redirects?0 -
200 Redirects for SEO instead of 301
We are working with a company on re-platforming our website. On a call yesterday they outlined a strategy to use 200 redirects for our top keywords instead of 301s. I am not familiar with this type of redirect and was wondering if anyone could provide some more insight.
Technical SEO | | EvergladesDirect0