note 80374 added to ref.session

From: Date: Sat, 12 Jan 2008 22:26:06 +0000
Subject: note 80374 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-135056@lists.php.net to get a copy of this message
Another way of handling the "www" versus non-"www" URL's: In your .htaccess file, add: RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^www.yourdomain.com$ RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L] This will rewrite: www.yourdomain.com/anything to: yourdomain.com/anything To reverse, e.g. add a www if it isn't present, change the 3rd line to: RewriteCond %{HTTP_HOST} !^www.yourdomain.com$ ---- Server IP: 69.147.83.197 Probable Submitter: 12.202.128.83 ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- https://master.php.net/note/edit/80374 Del: integrated -- https://master.php.net/note/delete/80374/integrated Del: useless -- https://master.php.net/note/delete/80374/useless Del: bad code -- https://master.php.net/note/delete/80374/bad+code Del: spam -- https://master.php.net/note/delete/80374/spam Del: non-english -- https://master.php.net/note/delete/80374/non-english Del: in docs -- https://master.php.net/note/delete/80374/in+docs Del: other reasons-- https://master.php.net/note/delete/80374 Reject -- https://master.php.net/note/reject/80374 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135056) next »