![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Click on my TCG signature
Join Date: Feb 2002
Posts: 20,825
|
![]() Anyone knows the code of a http 301 permanent redirect (from the current URL to a new URL) to be put into an html page?
__________________
$9.95/month for 15000 GB bandwidth monthly, unlimited (sub)domains and MySQL5, PHP4/5, 500 GB disk storage! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
You could put this in your htaccess
Code:
Redirect permanent / http://www.newurl.com/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
You can have a link too.. http://www.webconfs.com/how-to-redirect-a-webpage.php
That should explain it pretty good.. :-) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
Or the PHP way
Code:
header("HTTP/1.1 301 Moved Permanently"); header("Location: http://domain.com/"); header("Connection: close"); |
![]() |
![]() ![]() ![]() ![]() ![]() |