Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > HTML Programming

HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites.

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-2005, 09:50 AM
RobSoftware RobSoftware is offline
Programmer
 
Join Date: Nov 2005
Posts: 143
Rep Power: 12
RobSoftware is on a distinguished road
Default HTML Forwarding / Redirection

It is very, very simple:

Code:
<meta http-equiv="REFRESH" content="0;url=redirection_url.html">
Add the line above inbetween the <head> and </head> tags.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

Sponsored Links
  #2 (permalink)  
Old 05-01-2006, 10:02 AM
outofbreath outofbreath is offline
Newbie
 
Join Date: Apr 2006
Posts: 5
Rep Power: 0
outofbreath is on a distinguished road
Default

There are several different ways of accomplishing a redirect.
Below is the small Perl code script that redirects your site guests automatically.

Quote:
#!/usr/bin/perl

print "Location: http://www.domain.com/file.htm\n\n";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old 05-09-2006, 06:47 AM
enigma enigma is offline
Learning Programmer
 
Join Date: May 2006
Posts: 40
Rep Power: 10
enigma is on a distinguished road
Default

really now?! I never thought redirecting codes could be that simple! I don't understand perl code scripts yet though... thanks for letting me know guys!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old 05-14-2006, 05:05 PM
hwang hwang is offline
Newbie
 
Join Date: May 2006
Posts: 2
Rep Power: 0
hwang is on a distinguished road
Default

Are you really serious???
I never thought that could be so simple.... I never thought I could redirect a page using html code only.

Thanks for this great tip!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old 05-22-2006, 02:40 PM
brackett brackett is offline
Programmer
 
Join Date: May 2006
Posts: 193
Rep Power: 11
brackett is on a distinguished road
Default

Note that using the META tag with a setting of 0 supposedly causes problems with Google's spider - even with some other setting, I'm not sure they'd follow it. Also, it's not as efficient or robust as a 301 (permanently moved) or 302 (temporarily) HTTP response that a server side scripting language would (probably) generate.
That being said. If you've just got an HTML page, it's a quick and easy way to get it done.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

Sponsored Links
  #6 (permalink)  
Old 05-25-2006, 03:26 AM
Frantic's Avatar   
Frantic Frantic is offline
Learning Programmer
 
Join Date: May 2006
Posts: 92
Rep Power: 10
Frantic is on a distinguished road
Default

A 301 redirect is the most common and recommended redirection method.
Its safe and also SEO friendly
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7 (permalink)  
Old 06-22-2006, 10:13 PM
the-chad the-chad is offline
Newbie
 
Join Date: Jun 2006
Posts: 23
Rep Power: 9
the-chad is on a distinguished road
Default

well you could always do:

HTML Code:
<body onload=setTimeout("location.href='http://www.google.com'",1)>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8 (permalink)  
Old 06-28-2006, 08:59 PM
Dan Dan is offline
Programmer
 
Join Date: Jun 2006
Posts: 145
Rep Power: 9
Dan is on a distinguished road
Default

I have wrote a HOWTO on this subject here, 301 Redirect tutorial

I hope it is useful to somebody!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9 (permalink)  
Old 07-04-2006, 02:33 PM
DevilsCharm's Avatar   
DevilsCharm DevilsCharm is offline
Programming God
 
Join Date: Jul 2006
Posts: 887
Rep Power: 14
DevilsCharm is on a distinguished road
Default

I knew there was another way other than a 301 redirect, and this is it. I couldn't remember exactly what it was, I certainly forget things often.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
About HTML Onur Tutorials 0 08-28-2007 07:13 PM
HTML Basic Formatting clookid Tutorials 14 03-06-2007 04:10 PM
HTML Introduction clookid Tutorials 5 01-08-2007 10:43 PM
What is HTML, DHTML and XHTML? Lop HTML Programming 5 08-09-2006 12:00 PM
The ultimate xHTML / DHTML / HTML 301 redirection thread! Dan HTML Programming 5 07-04-2006 06:57 PM


All times are GMT -5. The time now is 07:39 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads