2 different theme shows in url

Redirect one url scheme to another.

If you want to keep www version then redirect non www version to www or vice versa.

Wordpress automatically takes care of it. Make sure that site and homepage url is same in setting.
 
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Insert this code in htaccess file
 
I think his question was more on the lines of how could that happen. The website shows 2 versions, one for the www and one for the non-www version. I have came across this issue when migrating the website on a new server and doing a wrong nameserver change, so the www version was moved, but the non-www wasn't. Try to see why does your website point to two versions at the same time. The easiest fix is to redirect, as people said. But check to see why did it happen in the first place
 
Back
Top