Make a site Class B
-
I was looking at the home page of a plugin that does this and saw that “Otto” had posted the following:
“While this plugin and other like it will indeed work, I really recommend using the .htaccess method instead, if you can get it to work.
It’s actually very simple to do. Go to no-www org and scroll down the page until you find the post titled “Make your site Class B”. Copy that htaccess code into the .htaccess file at the root of your webpage. Change the “domain” to your own, obviously.
Done and done.”
This is the no-wwwcode Otto refers to:RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]I am cautious about changing the htaccess file as what is in there now was put there when I changed my permalinks from the default:
# BEGIN WordPress<IfModule mod_rewrite.c>
RewriteEngine OnRewriteBase /
RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %
{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]
</IfModule># END WordPressDo I replace the current htaccess code with the no-www code? Or put the np-www code at the end of the existing? Or, edit the no-www code into the existing?
The topic ‘Make a site Class B’ is closed to new replies.