I'm trying to get a wordpress site to redirect to the www version using the .htaccess. The following code gives me 404 error
It works in all of my non wordpress sites but can't get it to work for wordpress.
Help please?
PHP:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(.*)\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
It works in all of my non wordpress sites but can't get it to work for wordpress.
Help please?