• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

Redirect web visitors whose javascript is disabled

I have an older website, whose features will degrade gracefully for browsers with javascript disabled.  A newly-launched website has features which would be more difficult to degrade gracefully.  I'd like to direct browsers to the old site by default, and over-ride that redirection with javascript.  I've tested this in the <HEAD>:

<noscript>
  <meta http-equiv="refresh" content="0; url=http://oldsite.com/">
</noscript>

It seems to be working, but  I don't know if there will be unintended consequences.  Perhaps there is an alternative approach, or is this an acceptable method?
0
ddantes
Asked:
ddantes
  • 4
  • 3
1 Solution
 
Ray PaseurCommented:
What is the URL of the test site?  I'll be glad to try it in a few different browsers and let you know what happens.  

FWIW, I don't think there is anything wrong with your approach.  However, there are not very many clients who disable JavaScript (or cookies, for that matter) because if you remove these features you can't use most of the major and popular web sites like Facebook, Amazon, Twitter, etc.
0
 
ddantesAuthor Commented:
Thank you for offering to test.  www.mauivacationrental.com/test.htm  should redirect to www.mauitradewinds.com  with nojs.

I agree, it's a small audience who disable js.  If there's no harm in accommodating them, I'd prefer to do so.
0
 
GaryCommented:
That's the common way to do it and is supported in all browsers
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
Ray PaseurCommented:
Looks like it work OK.  I got redirected every time.  I also got snotgrams from Facebook :-)
0
 
ddantesAuthor Commented:
Thank you for testing, Ray.  Please excuse my antiquated mentality, but what do mean about "snotgrams from Facebook"?
0
 
Ray PaseurCommented:
Facebook is "pretty lame" with JavaScript disabled.  They put a banner across the page to tell you how you are missing out on the "good experience."
0
 
ddantesAuthor Commented:
Got it!   Thanks again for your help.
0
 
Ray PaseurCommented:
Thanks for the points and thanks for using EE!  Enjoy Spring Break! ~Ray
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now