Because they will be placed into the Supplemental Index.
This means that you either have URLs that look like this: http://example.com/ or this: http://www.example.com/ Both URLs would go to the same page, but to a robot, they are different sites entirely and so one would appear as a duplicate of the other.
we will do that with two methods:
- httpd.conf method
- .htaccess method
first way using httpd.conf
edit the httpd.conf from
pico/etc/httpd/conf/httpd.confand shearch for :
usecanonicalnameand chage it from On to Off and save changes then restart the apache by service httpd restart.
second way using .htaccess
Insert this into the top of your .htaccess file, making sure that ‘RewriteEngine On’ comes before it:RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.jooria.com [NC]
RewriteRule ^(.*)$ http://www.jooria.com/$1 [R=301,L]Replace jooria.com with your chosen domain and make sure if you are placing any full stops within the first line to enter a backslash before each full stop. This will prevent the code from not working.
