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

Posts: 61
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
__________________
Free web submission
bernardmax is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-23-2005, 01:48 PM
eburza's Avatar
Super Talker

Posts: 114
Location: Zagreb, Croatia
add this to head

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

5 is time in sec

hope it helps
__________________
eBurza: www.eburza.net :: Buy & Sell Vehicles & Realestate
eburza is offline
Reply With Quote
View Public Profile Visit eburza's homepage!
 
Old 11-25-2005, 04:38 PM
Skilled Talker

Posts: 61
yoururl.com means new website url?
__________________
Free web submission
bernardmax is offline
Reply With Quote
View Public Profile
 
Old 11-25-2005, 04:45 PM
madkad's Avatar
Ultra Talker

Posts: 308
Location: UK
yer it meens you replace the url with yours
__________________
Earn $25 A Referral | Mad Kad Computers | Webmaster Forum | Graphics Forums

SEO Forum | Internet Marketing Get found within the search engines and earn money
madkad is offline
Reply With Quote
View Public Profile Visit madkad's homepage!
 
Old 11-26-2005, 02:24 PM .htaccess
Webmaster Talker

Posts: 592
Location: Atlanta, GA
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.

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

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

vB 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.12737 seconds with 12 queries