Flash Games

 FAQ   Search   Members   Groups   User Control Panel      Login 

It is currently Fri Jan 09, 2009 2:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: 301 Redirect from http:// to http://www.
PostPosted: Tue Dec 27, 2005 11:19 pm 
Offline
Site Admin
User avatar

Joined: Tue Aug 17, 2004 2:07 pm
Posts: 2506
Location: Sweden
This code is a 301 redirect from: http://yoursite.com to http://www.yoursite.com

[php]<?php
if (!strstr($_SERVER['HTTP_HOST'],'www')){
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
exit();
}
?>[/php]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 20, 2007 7:15 pm 
Offline
50+ Club
User avatar

Joined: Thu Sep 28, 2006 8:44 pm
Posts: 63
must have took you some time to color it.
nice script

_________________
----
$even@ce$
Steel is Iron + Fire!!!
My Official web-site : http://www.vpirates.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 21, 2007 9:16 am 
Offline
Site Admin
User avatar

Joined: Tue Aug 17, 2004 2:07 pm
Posts: 2506
Location: Sweden
The forum has a functions that highlights PHP script like this, I did not color it manually :)

_________________
Make sure to check out our TNX Review and Link Vault Review


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review

Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User:
Pass:
Log me on automatically each visit: