Log in

View Full Version : Basic Question that Google can't find the answer to


Beth Sweet
08-07-2006, 20:57
As the title indicated, I have a simple question and Google is sending me to these sites that I swear, are in French.

I want to do a basic HTML that when someone logs into the website, that it sends them directly to another website. Basically, our website isn't in a set spot yet, and I want to have one to put on my business cards so that when people want more info on our team, they can find it.

Anyone know the code?

sanddrag
08-07-2006, 21:02
This is SO easy. <meta http-equiv="refresh" content="0; url=http://www.SOMETHING.com">
Replace the zero with the number of seconds you want to wait before redirecting.

Or a better way to do it is to set a redirect in cPanel if your server has it.

You can also do it with a .htaccess file I believe but I forget how.

EDIT:
My code is the one liner, Adam's is the complete thing for a page.

Adam Richards
08-07-2006, 21:02
<html>
<head>
<META HTTP-EQUIV="REFRESH" CONTENT="X;URL=yourpage.html">
</head>
<body>
</body>
</html>x being how many seconds until it changes, usually 0.

JohnBoucher
08-07-2006, 21:06
If this is a temporary solution, you want to do a Meta Refresh.
<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.htmlhelp.com/"> tells the browser to load http://www.htmlhelp.com/ 10 seconds after the current document has finished loading. Not all browsers support this, so authors should provide an alternate means of moving to the new page where necessary. The Refresh header is sometimes used for "splash screens" or when a page has moved, but the technique is not very effective since users may not even be looking at the window that is to be refreshed and since it messes up the user's history on many browsers. Some search engines penalize pages that use a Refresh of a few seconds or less.

Beth Sweet
08-07-2006, 21:12
Thanks guys!

Very quickly, does anyone know why this code wouldn't transfer to the correct site?

http://www.freewebs.com/frcteam1504/index.htm

Michelle Celio
08-07-2006, 21:27
Thanks guys!

Very quickly, does anyone know why this code wouldn't transfer to the correct site?

http://www.freewebs.com/frcteam1504/index.htm

Probably becasue it's freewebs. Freewebs isnt always keen to letting you leave thier site. My teams site is currently on Freewebs and I've tried redirects, sometimes they work, sometimes they don't.

Adam Richards
08-07-2006, 21:53
Actually its a code problem.

Where you have:<META HTTP-EQUIV="REFRESH" CONTENT="3";URL="http://www.msu.edu/~dangmytr/team1504">
It should be: <META HTTP-EQUIV="REFRESH" CONTENT="3; URL=http://www.msu.edu/~dangmytr/team1504">

Beth Sweet
08-07-2006, 22:06
Thank you again!