Tag Archives: htaccess

htaccess redirect to www

Using AMFPhp, you may have domain’s SecurityErrorEvent with the Sandbox due to the presence of the www or not.

Here are two lines for your .htaccess :

RewriteEngine ON
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$   http://www.%{HTTP_HOST}/$1  [L,R=301]