Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a HTML website where users can select a product (going through categories/subcategories) and then when they choose the product they can customize it in a Flash application.

I would like to redirect users with no Flash Player to a mobile site (which is also HTML) where they will have a smaller range of categories and a non-Flash version of app:

var hasFlash = ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Shockwave Flash"] == "object") || (window.ActiveXObject && (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) != false));

if( !hasFlash ){
    document.location.href = '/mobile';

But I suppose this method will cause Google spiders/crawlers to omit the original HTML website and just index the mobile site (limited categories and less content).

Is there any way that I could redirect the users with no Flash to the mobile site, but make the Google crawlers to index the original site?

share|improve this question

migrated from stackoverflow.com Jul 9 '13 at 16:26

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

Google doesn't run your JavaScript, so you don't have to worry about this specific issue. Also note that Google cannot always index content in SWF files.

In general, I would suggest having your no-Flash fallback content on the same page as the Flash content.

share|improve this answer
@user2555388, That is correct. However, I wouldn't bank on this being true 5 years from now. – Brad Jul 9 '13 at 18:05
I cannot have the fallback/redirection on the page where the flash content is, it needs to be done before on the main index of the html website (far before they get to the flash site). But this I had no clue about: "Google doesn't run your JavaScript". So google crawlers will not get redirected? – user2555388 Jul 9 '13 at 18:06
Thank you for your help Brad. I can't upvote you , not enough rep :( – user2555388 Jul 9 '13 at 22:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.