Force www Into URL

Published :
Author :
Adam Khoury
In this quick web development tip we discuss the apache method of forcing script connection in case the www is missing from a URL that requires it for script connection and session handling. .htaccess RewriteEngine on # Make all requests have the www. in the URL RewriteCond %{HTTP_HOST} ^websitename\.com RewriteRule ^(.*)$$1 [R=permanent,L]