If you have more than one domain pointing to the same IP address, redirect each domain to its directory with this javascript.
Top JavaScript scripts
1).
Count down then redirect script This script pauses and displays a countdown before redirecting to the page of your choice.
2).
Random redirection Random redirection is a copy and paste code that allows you to do random redirection on your website.
3).
Browser Redirect 1 With Browser Redirect 1 JavaScript visitors to your page will be redirected to a page that matches the type and version of the browser being used by the visitor.
4).
Browser language redirection This script detects the visitor’s language setting in his/her browser and redirects the visitor to the appropriate language page. The redirect URL has to be specified in the script.
5).
Ace Screen Resolution Redirect With Ace Screen Resolution Redirect JavaScript the visitors will be redirected to a webpage that matches with the screen resolution of their system.
6).
Browser Redirect 2 With Browser Redirect 2 JavaScript your visitors will be redirected to a version page of the browser based on the browser being used by the user to browse the page.
7).
Java Applet Redirection - JAR Java Applet Redirection JAR is a script that redirects the users to another webpage. This script has been written using javascript.
New JavaScript scripts
1).
Language The script directs the visitors to the correct language page. The redirection is done based on the language reported by the browser. Allows you to add more languages in the script.
2).
If/Then Screen Resolution Redirection This script detects the screen resolution of the visitor and directs the visitor to the appropriate page that works best for that particular resolution.
3).
Browser Redirect 1 With Browser Redirect 1 JavaScript visitors to your page will be redirected to a page that matches the type and version of the browser being used by the visitor.
4).
Java Applet Redirection - JAR Java Applet Redirection JAR is a script that redirects the users to another webpage. This script has been written using javascript.
5).
Count down then redirect script This script pauses and displays a countdown before redirecting to the page of your choice.
6).
Browser & Version Redirect Browser & Version Redirect creates a link from each browser’s page into the version pages on the basis of the browser used by the visitor. Ideal when you have two separate pages, one for IE and the other for NS.
7).
Browser language redirection This script detects the visitor’s language setting in his/her browser and redirects the visitor to the appropriate language page. The redirect URL has to be specified in the script.