Jump to content

redirecting


Webmaster Tuhy

Recommended Posts

Its html...

<meta HTTP-equiv="refresh" content="0;url=http://www.w3schools.com";>

in content, the 0; part is how soon to redirect the page (in seconds) and the url=blahblah; is what url to redirect to. Hope this is the kind of redirect you want, this will just change the page.. or you could do it in javascript, like this..

<script language="javascript" type="text/javascript">window.location="http://www.w3schools.com";</script>

Im not sure how to put a timer on that one though.. :) maybe someone else who actually knows javascript can

Link to comment
Share on other sites

I remember this socalled meta-refresh can be shut down by the client, whether by a setting or an action, but I can't be sure.I would choose for a javascript with a link to manual redirect (for when it doesn't work), or another way of the system that doesn't need a redirect.. :)But it is your choice :)

Link to comment
Share on other sites

p.s. if you still want any search engine to recognize the page you are redirection from, you should set your redirect to at least 15 seconds. If not, then a redirect is always better to be done on the server side - if possible. If you're stuck in static (X)HTML, then the meta tasg is best used for this.

Link to comment
Share on other sites

That is what I said, use another way within your system, such as a php redirect.Javascript is only client-side, which means the user will see the page that redirects, with php he cannot. :)

Sorry Dan, your post was hard to read and I thought you were saying you would choose a javascript method.Yes a server side redirect would be best.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...