How to redirect a webpage.
Moderators: Big-O Ryan, Big-O Mark, Matt, jester22c
How to redirect a webpage.
How do I redirect a webpage? Do I use PHP or JavaScript or something else. Please help I have no idea.
-
- Moderator
- Posts: 815
- Joined: Sun Sep 22, 2002 3:33 pm
- Contact:
if you want an Auto-Redirect..as soon as someone visits the Website.. put this into your <head> section of your HTML page.
<META HTTP-EQUIV="Refresh" CONTENT="3; URL=http://YourWebsite.com/index.htm">
Obviously, change the URL to your New Website where you want the users to be redirected to.
The Content number is the number of seconds it will wait until redirection.
So for example, if you wanted to display a message first.. saying the user is being redirected to your new Website.. put Content at about '10' ..and then it'll give them enough time to read your message.
<META HTTP-EQUIV="Refresh" CONTENT="3; URL=http://YourWebsite.com/index.htm">
Obviously, change the URL to your New Website where you want the users to be redirected to.
The Content number is the number of seconds it will wait until redirection.
So for example, if you wanted to display a message first.. saying the user is being redirected to your new Website.. put Content at about '10' ..and then it'll give them enough time to read your message.
- Plasma2002b
- Extreme Groupie
- Posts: 976
- Joined: Thu Jul 18, 2002 11:36 pm
- Location: Riverside, Ca
- Contact:
I made my own Message Board of sorts. It's nothing near as complex as phpbb or anything like that. But I will slowly try to add more features as I find out how to do them. I guess I will have to learn MySQL to really do anything advance. But I don't have a MySQL database to use. So I'm guess I'm out of luck untill I can find a free MySQL database. Don't say www.tripod.co.uk they are down or too slow all the time.
http://www.schwippy.com/insomica/insomicaboard/
http://www.schwippy.com/insomica/insomicaboard/
What I use
To redirect my pages, I just use a simple JavaScript command.
<html>
<body OnLoad="window.location='http://mysite.com'">
</body>
</html>
A little more work than the meta tag one, but works all the same.
<html>
<body OnLoad="window.location='http://mysite.com'">
</body>
</html>
A little more work than the meta tag one, but works all the same.
Who is online
Users browsing this forum: No registered users and 1 guest