Cormac
New Member
I currently have this as my .htaccess file for WP
I want to be able to enforce no-www on the entire domain. I have added
to a .htaccess file within the root of my site but it doesn't enforce no-www within the blog folder. How should I edit the .htaccess file within my blog folder to enforce no-www?
Many thanks
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^cormacmoylan.com$ [NC]
RewriteRule ^(.*)$ http://cormacmoylan.com/$1 [L,R=301]
Many thanks