i have two html one which works in all browser and the other is for ie
ex 1.html (not ie) and 2.html (ie)
i added this in 1.html

!--[if IE]><meta http-equiv="refresh" content="0;URL=2.html/"><![endif]-->

which works
my question is if the visitor visit the same page (2.html) and using different browser
i want to redirect back to 1.html (not ie)

Recommended Answers

All 6 Replies

Member Avatar for stbuchok

Use javascript to check which browser, then redirect based on that.

tried searching but cant find one :(

tried that but cant find a specific script
im not a programmer and it will be difficult. i think no one has done this before. The idea is the my 1.html is compatible with almost browser except ie so i made a specific html for ie (2.html) my concern is if someone share the url of 2.html it will open but not as good as 1.html so i was thinking to redirect visitors from ie going back to 1.html (not ie)

oh thanks stbuchok!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.