Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-11-2004, 06:09 AM   #1
Member (7 bit)
 
Join Date: Jan 2002
Location: Barcelona
Posts: 85
redirecting from old to new site

Is there a nice and easy way to send users from one site to another? I have a new URL which nobody can find and an old one which is well ranked on Yahoo. Basically I want to take advantage of the old ones rank and get those hits going to my new site instead.
Thanks,
Craig.
craigtaylor74 is offline   Reply With Quote
Old 03-11-2004, 06:31 AM   #2
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
There are several ways to do it, depends on the server type, and available programming languages, using HTML and a refresh meta tag is guarantied to work every where, just set your old index.html to something like this:
PHP Code:
<html>
<
head>
<
titletitle </title>
<
meta http-equiv="refresh" content="1; URL=http://newurl/">
</
head>
<
body>
you are being redirected to our new web site.
</
body>
</
html
If your server supports PHP, you can set the index.php page to something like:

PHP Code:
<?php
header
("Location: http://new_url/");
?>
EDIT:
removed [url] tags.

Last edited by aym; 03-11-2004 at 10:30 AM.
aym is offline   Reply With Quote
Old 03-11-2004, 06:31 AM   #3
Member (7 bit)
 
patislesfan's Avatar
 
Join Date: Jan 2003
Location: Poughkeepsie, New York
Posts: 96
Send a message via AIM to patislesfan
Craig what you need to do is create a redirect from your old site to your new site. You can do this a couple of ways. I'm on a different computer right now and all my stuff is on my work computer. I have to sign in for work soon so let me do a couple of things and then when I sign on I can give you more detailed information ok? See you in a few.
patislesfan is offline   Reply With Quote
Old 03-11-2004, 06:32 AM   #4
Member (7 bit)
 
patislesfan's Avatar
 
Join Date: Jan 2003
Location: Poughkeepsie, New York
Posts: 96
Send a message via AIM to patislesfan
aym_7 beat me to the punch. Sorry.
patislesfan is offline   Reply With Quote
Old 03-11-2004, 09:41 AM   #5
Member (7 bit)
 
Join Date: Jan 2002
Location: Barcelona
Posts: 85
ok. that's it working. thanks very much.
craigtaylor74 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:49 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2