Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
html code for redirection
Old 11-23-2005, 01:11 PM html code for redirection
Skilled Talker

Posts: 61
Trades: 0
can someone give me html code for my website redirection....coz i have got my old website...i want to redirect to the new one..

thanx
__________________

Please login or register to view this content. Registration is FREE
bernardmax is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-23-2005, 01:48 PM
eburza's Avatar
Super Talker

Posts: 122
Name: Antonio Magdic
Location: Zagreb, Croatia
Trades: 0
add this to head

<head>
<meta http-equiv="refresh" content="5;URL=http://yoururl.com">
</head>

5 is time in sec

hope it helps
__________________

Please login or register to view this content. Registration is FREE
eburza is offline
Reply With Quote
View Public Profile Visit eburza's homepage!
 
Old 11-25-2005, 04:38 PM
Skilled Talker

Posts: 61
Trades: 0
yoururl.com means new website url?
__________________

Please login or register to view this content. Registration is FREE
bernardmax is offline
Reply With Quote
View Public Profile
 
Old 11-25-2005, 04:45 PM
madkad's Avatar
madkad-hosting.com

Posts: 310
Location: UK
Trades: 0
yer it meens you replace the url with yours
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Great Hosting For You
madkad is offline
Reply With Quote
View Public Profile Visit madkad's homepage!
 
Old 11-26-2005, 02:24 PM .htaccess
Yak Yak Yak Yak Yak

Posts: 593
Location: Rochester, MN
Trades: 0
If you are hosted on a linux server, simply create a text file in notepad (not word or wordpad) and name it htaccess.txt.

In the file, place the following code:

redirect 301 / http://www.yournewsite.com

the first / signifies the root directory of your current site. This will redirect all pages of your site to the exact same file on your new site.

For example:
www.youroldsite.com/testing/test.html
would redirect to:
www.yournewsite.com/testing/test.html

Upload the file to your root html directory, and then change the name to .htaccess (It might disappear once you change the name, it might not). Then visit your old site. You should be immediately taken to your new site.

301 redirection brings users instantly to your new site. Like this. Visit http://www.neorunner.com/golden_girls/
It will immediately take you to the new home for the girls at mygoldengirls.net.

This is also the most search engine friendly redirect. Most web hosts allow .htaccess files. If yours doesn't, you could contact them and ask them to do a 301 redirect on your root directory. Some free hosts don't allow access to .htaccess files.
I hope this helps.
__________________

Please login or register to view this content. Registration is FREE

Last edited by neorunner; 11-26-2005 at 02:32 PM..
neorunner is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to html code for redirection
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26269 seconds with 12 queries