English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Currently I have the need to set up a website such that when a person opens www.website.com it takes them to www.website.com/main/index.shtml . The same kind of phenominon can be viewed if you try to go to www.wikipedia.com. When the page loads it instantly redirects you to www.wikipedia.org. I'd like to be able to set up something similar but I cannot see the source code on wikipedia.com since the moment I try to load it the page redirects me to wikipedia.org

2007-07-09 09:16:11 · 5 answers · asked by Shawn N 1 in Computers & Internet Programming & Design

5 answers

with wikipedia they own both domains, so redirection from .com to .org is a doddle. without owning both it's not possible.

anyways, to redirect from one page to another, see this:
http://www.irt.org/articles/js021/index.htm

there are a number of ways to redirect a page on loading...
...html:




...javascript:





the html example is going to be the quickest and easiest.

2007-07-09 09:21:15 · answer #1 · answered by piquet 7 · 0 0

If you wish to depend on your page viewer's having javascript enabled, then you could code the entire text of the page as:

where "otherpage" is the name of the place to which you want to redirect the page viewer

2007-07-09 09:27:38 · answer #2 · answered by fjpoblam 7 · 0 0

yes using a header re-diret. It is absolutely horrible for SEO, and is not recommended unless must




content =0 allows for a delay in re-direct eg. 1,2,3,4....etc


don't use javascript incase the user has disabled it, security warnings could also go off, do it in the meta

2007-07-09 09:23:38 · answer #3 · answered by WebDev 3 · 0 0

Try this website... It has code, although I have not tried it.

2007-07-09 09:23:55 · answer #4 · answered by Dan Bueno 4 · 0 0

If you're programming in .net, you can use Page.Redirect.

2007-07-09 10:17:59 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers