Does anyone have a snippet or could help change my standard .htaccess to something dynamic?
Within all my sites I force WWW with the following code.
For each site the htaccess file needs to be manualy edited to the domain name. How could I make this dynamic?
Within all my sites I force WWW with the following code.
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
For each site the htaccess file needs to be manualy edited to the domain name. How could I make this dynamic?