GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   very quick php question, help plz (https://gfy.com/showthread.php?t=915727)

qwe 07-13-2009 07:44 PM

very quick php question, help plz
 
lets say I have one.php in my root directory on the server, and I activate it from the browser as http://site.com/one.php then I want that to redirect to http://site.com/two.html ... what code do I put in one.php file to redirect to two.html page ?

Fucksakes 07-13-2009 07:47 PM

Quote:

Originally Posted by qwe (Post 16060787)
lets say I have one.php in my root directory on the server, and I activate it from the browser as http://site.com/one.php then I want that to redirect to http://site.com/two.html ... what code do I put in one.php file to redirect to two.html page ?

PHP Code:

<?php
header
("HTTP/1.1 301 Moved Permanently");
header("Location: url here");
?>


qwe 07-13-2009 07:53 PM

Quote:

Originally Posted by Fucksakes (Post 16060795)
PHP Code:

<?php
header
("HTTP/1.1 301 Moved Permanently");
header("Location: url here");
?>


thx bro :thumbsup


All times are GMT -7. The time now is 01:22 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123