We support Microsoft .NET Framework 2.0 & 1.1, all versions of Access, SQL 2000, SQL 7.0, SQL 2005 Express, SOAP, FrontPage 2002, 2003, Visual Studio 2005, Index Server, XML, UDDI, & Mobile device support. We also offer great third party tools like SmarterMail, Merak Mail, SmarterStats, PHP, Perl, MySql, DeepMetrix Livestats XSP 8.0.   We support Microsoft .NET Framework 2.0 & 1.1, all versions of Access, SQL 2000, SQL 7.0, SQL 2005 Express, SOAP, FrontPage 2002, 2003, Visual Studio 2005, Index Server, XML, UDDI, & Mobile device support. We also offer great third party tools like SmarterMail, Merak Mail, SmarterStats, PHP, Perl, MySql, DeepMetrix Livestats XSP 8.0.
 Monday, October 15, 2007

Place the following code into the header of any php document and it will redirect the page access to the correct site name. while preserving the script name and the query arguments.


// If the server name is not www.sitename.com we can do the redirect to www.sitename.com. // The only time we can is if the method is a GET // (no way to pass along the POST arguments) and its on port 80 (don't want to redirect the SSL). if ( strcmp( strtolower( $_SERVER['HTTP_HOST'] ) , "www.sitename.com" ) != 0 && strcmp( strtolower( $_SERVER['REQUEST_METHOD'] ) , "get" ) == 0 && $_SERVER['SERVER_PORT'] == 80 ) { header("Location: http://www.sitename.com" . $_SERVER['REQUEST_URI'] ); header("HTTP/1.0 301 Moved Permanently"); exit ; }
Dev
10/15/2007 7:10:00 AM (Pacific Daylight Time, UTC-07:00)  #    Disclaimer  |  Comments [0]  | 
Related Posts:
EGroupware
Microsoft and Iron Ruby
SQL injection
Synchronize Mysql data with php
IE 8 passes ACID2 test
SQL Speed Tip