Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-03-2007, 07:11 PM   #1 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default {Tutorial} Redirect your visitors without using JavaScript!


There are many webmasters here. Many visitors have old browsers which do NOT support JS. So here is an method which will redirect your website\\\'s visitors without any JS. This uses PHP.
Server Requirement: PHP interpreter

Code:
<?php
PHP Code:
header(\\\"Location: http://thinkdigit.com/\"); 
Code:
?>
The above code will work only if NO text is passed to the browser and i takes atleast 1 min. to redirect.
__________
Replace thinkdigit.com to with the page you want to redirect.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e

Last edited by The Unknown; 08-03-2007 at 07:11 PM. Reason: Automerged Doublepost
The Unknown is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 08-03-2007, 09:23 PM   #2 (permalink)
Coming back to life ..
 
it_waaznt_me's Avatar
 
Join Date: Nov 2003
Location: A bit closer to heaven
Posts: 1,997
Default Re: {Tutorial} Redirect your visitors without using JavaScript!

Javascript has the speed advantage. As it works on client side, time is not lost in transit.
__________________
Sleight of hand and twist of fate...
On a bed of nails she makes me wait...
And I wait without you ...
With or without you ..
----
Batty = Too Busy Now !!!
it_waaznt_me is offline  
Old 08-03-2007, 09:56 PM   #3 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: {Tutorial} Redirect your visitors without using JavaScript!

There's also the html tag...the easiest!
Quote:
<META HTTP-EQUIV="Refresh"
CONTENT="5; URL=http://mediator.com">
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 09-03-2007, 12:03 PM   #4 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: {Tutorial} Redirect your visitors without using JavaScript!

@it_wazznt_me

you are right. it is meant for old browsers who don't support JS.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Closed Thread

Bookmarks

Thread Tools
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


 
Latest Threads
- by chris
- by Tenida
- by clinton

Advertisement




All times are GMT +5.5. The time now is 03:55 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2