Home   Help Login Register  
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Search
WooThemes - Quality Themes, Great Support
Pages: [1]   Go Down
Print
Topic: 302 Redirect using PHP - temporary redirections  (Read 707 times)
0 Members and 1 Guest are viewing this topic.
« on: August 10, 2008, 03:36:37 AM »
Kevin Offline
Newbie

View Profile
*

iTrader: 2
Posts: 72



Sometime, you may need to redirect your site to some other location. In such event, you may set 302 redirection (also called temporary redirection) using PHP code. Following is the sample 302 redirection using PHP:

Code:
<?php
header
(”Location&#58; http&#58;//www&#46;your-web-site&#46;com/temp-location/index&#46;html”);
exit();
?>


Kevin
Logged
« Reply #1 on: December 14, 2008, 12:41:42 AM »
muckle.martin Offline
Newbie

View Profile WWW
*

iTrader: 0
Posts: 5



Ignore my last message Smiley

Quote from: "Kevin"
Sometime, you may need to redirect your site to some other location. In such event, you may set 302 redirection (also called temporary redirection) using PHP code. Following is the sample 302 redirection using PHP:

Code:
<?php
header
(”Location&#58; http&#58;//www&#46;your-web-site&#46;com/temp-location/index&#46;html”);
exit();
?>


Kevin
Logged
Pages: [1]   Go Up
Print
Jump to:  

Untitled Document
(c) 2009 HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Forum style designed by PixelSlot
Sitemap - XML Sitemap