Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-13-2009, 07:44 PM   #1
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
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 ?
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2009, 07:47 PM   #2
Fucksakes
Shit... Fuck! What the Hell?
 
Fucksakes's Avatar
 
Industry Role:
Join Date: Dec 2003
Posts: 7,567
Quote:
Originally Posted by qwe View Post
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");
?>
Fucksakes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2009, 07:53 PM   #3
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by Fucksakes View Post
PHP Code:
<?php
header
("HTTP/1.1 301 Moved Permanently");
header("Location: url here");
?>
thx bro
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.