User Login

Help Community Login:

How Do I Redirect To Another Page or Website?

4 replies [Last post]
theBouncer's picture
From:
Your local Roadhouse
theBouncer
Premium Member (Gold)I use FirefoxI use Internet ExplorerI use SafariWindows UserI donated more than $20+ to GeekDrop!I spend all day Photobucketing!I'm MagicThe Dr. put the stem on the apple!The Joker
Joined: 12/29/2009
Posts: 28
Drops: 42
Mood: Curious

Here's another Dumbfound the dogg question: I was reading Smartmom's thread and was wondering how to do a simple redirect like you mentioned in it?

I Averaged: 0 | 0 votes

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Divorced
Joined: 01/14/2009
Posts: 2549
Drops: 2998
Mood: Curious
Re: How Do I Redirect To Another Page or Website?

A simple redirect can be done using plain HTML, with the "Meta Refresh" tag. You have 2 basic options; just refresh your own page, or redirect the surfer to some other page or website.

It goes in the Meta area of your page, which is within the Head tags.

Here's an example of sending someone to google.com from a page on your site:

<html>
<head>
<meta http-equiv="refresh" content="10;url=http://www.google.com" />
<title>And awaaaay we gooo!</title>
</head>
<body>
This is where the rest of your page code goes.
</body>
</html>

The number in the "Content" parameter is the amount of seconds the page will sit idle before redirecting the surfer to the page you chose. In this case 10 seconds. You usually want to give the surfer a chance to read what's going on before sending them off somewhere else, unless you don't actually want them on this page at all, and just want to send them to somewhere else instantly. For example, you registered a new domain name where your site is now at instead, you could set the Content parameter to 0, which means as soon as the surfer hits that page they will instantly be sent to your new page.

The URL parameter is where you enter the URL to where you want the surfer to go once the Content timer "dings".

If you want to simply refresh the same page, for example, you have some sort of dynamic content, you just leave out the semi-colon and URL parameter, like so:

<html>
<head>
<meta http-equiv="refresh" content="10" />
<title>This is my page</title>
</head>
<body>
The rest of your page.
</body>
</html>


Never play leapfrog with a unicorn
Smartmom's picture
From:
Wellington Florida
Smartmom
Banned Member (Way To Go!)
Relationship Status:
Married
Joined: 01/15/2009
Posts: 6392
Drops: -21
Mood: Giggly
Re: How Do I Redirect To Another Page or Website?

Great info dogg and thanks for the question bouncer. I may give this a try this weekend when I do my one paget they get after the form to bounce them to the home page. Big Grin

Niebr's picture
From:
Pittsburgh, Pennsylvania
Niebr
Banned Member (Way To Go!)
Joined: 03/17/2009
Posts: 212
Drops: 305
Mood: Content
Groups: Geekdrop Cafe
Re: How Do I Redirect To Another Page or Website?

is there anyway id be able to utilize this on social sites such as myspace and myyearbook to redirect people to my website ? cause my old thing aint working no more,

ì╒ mÿ ¢ºMpútéΓ ßùsîÑë$$ Wa$ èa$¥, Σ√εΓyôÑé wσµ└d ßé döî∩g ï┬.
gφ┼hiç géΣk ¢Ωmpù┬é┌ ┌èPäï┌
~ÑìëßΓ~

STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Divorced
Joined: 01/14/2009
Posts: 2549
Drops: 2998
Mood: Curious
Re: How Do I Redirect To Another Page or Website?
Niebr wrote:

is there anyway id be able to utilize this on social sites such as myspace and myyearbook to redirect people to my website ?

You need edit access to the page source in order to do this. I can't think of a way off the top of my head to automatically send someone to another site from a site like myspace or myyearbook.


Never play leapfrog with a unicorn

Who's New

militarymom's picture
Simra's picture
srikanth's picture
joshter1950's picture
bittu's picture
will1981's picture
jemsrock's picture
ravichandraa's picture
baofeng2003's picture
Vibeke's picture
seyab's picture
Nateatx72's picture
Jadedend's picture
sslover332's picture
highway420's picture
facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop 2009-2017
TOS | Privacy Policy