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 addedCode:# 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
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?Code:RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^cormacmoylan.com$ [NC] RewriteRule ^(.*)$ http://cormacmoylan.com/$1 [L,R=301]
Many thanks


LinkBack URL
About LinkBacks







Reply With Quote


