Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript based redirect: will it hurt SEO?

I recently implemented a fix to create separate landing pages depending on whether or not the user has javascript enabled. Basically the way it works is this.

The default page is an HTML page w/ no javascript. Basic version of the site. Upon landing on it, there is a script that says if javascript is enabled then go to another page. That landing page is generated by sending the user request through a JSP file that renders the page (header, footer, etc.). The final landing page is http://whatever.com/home.jsp if the user has javascript enabled.

My question is if this will hurt SEO. Considering 99% of the world has javascript enabled I would hate to compromise any SEO benefit to accomodate the 1% who doesn't enable javascript.

Hope that make sense.

like image 694
bgadoci Avatar asked Feb 17 '10 03:02

bgadoci


People also ask

Are redirect bad for SEO?

Redirects are not bad for SEO, but — as with so many things — only if you put them in place correctly. A bad implementation might cause all kinds of trouble, from loss of PageRank to loss of traffic. Redirecting pages is a must if you make any changes to your URLs.

Can Google follow JavaScript redirects?

Google Search interprets and executes JavaScript using the Web Rendering Service once crawling of the URL has completed. Only use JavaScript redirects if you can't do server side or meta refresh redirects. While Google attempts to render every URL Googlebot crawled, rendering may fail for various reasons.

Will 301 redirects hurt SEO?

This means that 301 redirects do not harm SEO performance or reduce the “PageRank” metrics associate with a page URL – though they are not crucial to search rankings either. All 300-level server-side redirects pass PageRank to the destination page (including 301 redirects as well as 302s, and 307s).

Does a 307 redirect affect SEO?

307 Redirect URL This redirect URL code method is used to make sure the HTTP request doesn't change when the server responds with a redirect. A 307 redirect code has no big impact on SEO. Instead of using 307 redirects, it's best practice to use a 302 redirect code instead.


1 Answers

In general, searchbots should be treated as browsers with JS disabled. I think you can now imagine where they'll land.

This whole question is by the way completely unrelated to JSP. It is just a server side view technology which provides a template to write HTML/CSS/JS in and provides capabilities to control the page flow dynamically with taglibs and access backend data with EL. All what webbrowsers and bots sees (and thus all what counts for SEO) is its generated HTML output.

like image 105
BalusC Avatar answered Sep 27 '22 19:09

BalusC