How to redirect a webpage.

Hardware, Software, Internet, etc.

Moderators: Big-O Ryan, Big-O Mark, Matt, jester22c

Post Reply
User avatar
insomica
Addict
Addict
Posts: 116
Joined: Sat Feb 01, 2003 6:00 am
Contact:

How to redirect a webpage.

Post by insomica »

How do I redirect a webpage? Do I use PHP or JavaScript or something else. Please help I have no idea.
Bitwise: insomica ->Image
fuuucckkers
Moderator
Moderator
Posts: 815
Joined: Sun Sep 22, 2002 3:33 pm
Contact:

Post by fuuucckkers »

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.

:)
User avatar
insomica
Addict
Addict
Posts: 116
Joined: Sat Feb 01, 2003 6:00 am
Contact:

Post by insomica »

Cool. Thanks. I looked for it on bloo and w3c and could not find it.
Bitwise: insomica ->Image
User avatar
Plasma2002b
Extreme Groupie
Extreme Groupie
Posts: 976
Joined: Thu Jul 18, 2002 11:36 pm
Location: Riverside, Ca
Contact:

Post by Plasma2002b »

shoudl have tried schwippy :wink:

lol... its basically the same title as this topic :P
Image

its teh infamous life of brian gaut to teh max0r!
User avatar
insomica
Addict
Addict
Posts: 116
Joined: Sat Feb 01, 2003 6:00 am
Contact:

Post by insomica »

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/
Bitwise: insomica ->Image
User avatar
xteq113
Newbie
Newbie
Posts: 8
Joined: Sun Nov 24, 2002 8:36 pm
Location: Somerset. PA
Contact:

What I use

Post by xteq113 »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest