301 redirect from www to non-www

Joomla is not Wordpress, and it isn't automatically make 301 redirect from www to non-website. This apparently creates a really important problem to solve which you have to manually customize your .htaccess file. So we will tell you how to make 301 redirect from www to non-www website.

Step 1. Find your .htaccess file.

Find the .htaccess file of your website and download it to your computer. It is the most important step, because without .htaccess file we wouldn't be able to make 301 redirect from www to non-www.

Step 2. Add the following code into .htaccess file.

To make the 301 redirect from www to non-www you have to add the following code into your .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} www.yourwebsitehere.com
RewriteRule (.*) http://yourwebsitehere.com/$1 [R=301,L]


Or if you want to make 301 redirect from non-www to www domain add this following code:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

We are sure that our method will resolve the issue, and try another Joomla Seo tips and make the website fully optimized.