I always have trouble remembering the proper way to redirect my www.craigryder.com to craigryder.com so in the spirit of me posting stuff here so I won’t forget it, here it is. Redirect www to non-www: RewriteEngine On RewriteBase / RewriteCond % ^www.yourdomain.com [NC] RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301 Redirect non-www to www: RewriteEngine On RewriteBase / …
Continue reading “Redirect www to non www and the reverse in .htaccess – works”