Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Website Design/Showcase (http://www.chiefdelphi.com/forums/forumdisplay.php?f=64)
-   -   Basic Question that Google can't find the answer to (http://www.chiefdelphi.com/forums/showthread.php?t=48209)

Beth Sweet 08-07-2006 20:57

Basic Question that Google can't find the answer to
 
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

Re: Basic Question that Google can't find the answer to
 
This is SO easy.
Code:

<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

Re: Basic Question that Google can't find the answer to
 
Code:

<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

Re: Basic Question that Google can't find the answer to
 
If this is a temporary solution, you want to do a Meta Refresh.
Quote:

<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

Re: Basic Question that Google can't find the answer to
 
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

Re: Basic Question that Google can't find the answer to
 
Quote:

Originally Posted by Beth Sweet
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

Re: Basic Question that Google can't find the answer to
 
Actually its a code problem.

Where you have:
Code:

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

<META HTTP-EQUIV="REFRESH" CONTENT="3; URL=http://www.msu.edu/~dangmytr/team1504">

Beth Sweet 08-07-2006 22:06

Re: Basic Question that Google can't find the answer to
 
Thank you again!


All times are GMT -5. The time now is 16:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi