Home   Help Login Register  
Welcome, Guest. Please login or register.

Login with username, password and session length

Search
Free Website WooThemes - Quality Themes, Great Support
Pages: [1]   Go Down
Print
Topic: 302 Redirect using PHP - temporary redirections  (Read 2868 times)
« 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: http://www.your-web-site.com/temp-location/index.html");
exit();
?>


Kevin

Share this topic on AskShare this topic on BlinkbitsShare this topic on BlinklistShare this topic on BloglinesShare this topic on BmarksShare this topic on Del.icio.usShare this topic on DiggShare this topic on DzoneShare this topic on FacebookShare this topic on Feed Me LinksShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on NetvouzShare this topic on NewsvineShare this topic on OneviewShare this topic on RedditShare this topic on RojoShare this topic on ScuttleShare this topic on ShadowsShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on TipdShare this topic on YahooShare this topic on Google buzz
« Last Edit: April 29, 2011, 12:49:19 PM by Kailash » 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
« Reply #2 on: October 15, 2010, 01:34:27 AM »
ramsankeiio Offline
Newbie

View Profile
*

iTrader: 0
Posts: 15



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.
Logged

« Reply #3 on: October 21, 2010, 04:41:09 PM »
kapukteam Offline
Newbie

View Profile
*

iTrader: 0
Posts: 5



hi all

please check my  signature about php
you can learn quickly

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

Untitled Document
(c) 2010 HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Powered by SMF 1.1.16 | SMF © 2011, Simple Machines | Forum style designed by PixelSlot
Web Hosting - Sitemap - XML Sitemap