Forcefully remove www on domain
You have a considerable measure of connections on the web where individuals are connecting to your webpage as www.xpertphp.com, yet you might want your guests to redirect at xpertphp.com you can constrain this variant of your area with these guidelines:
Follow below example of how to remove www on domain using htaccess
1 2 3 | RewriteEngine on RewriteCond %{HTTP_HOST} ^www.xpertphp.com [NC] RewriteRule ^(.*)$ http://xpertphp.com/$1 [L,R=301,NC] |
Please follow and like us: