Hello How can i setup on cpanel when a user is coming to my page using www.mydomain.com Code (markup): to auto forward him to mydomain.com ? Code (markup): I think is better to not use the www Thank you
add this to your .htaccess RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
You can use that above or log into your cpanel, go down to Domains and click on Redirect, select the domain. Redirect to: http://name.com then select "Redirect with or without www. " This will redirect www.name.com to http://name.com , or http://name.com to http://name.com although there is no difference. it makes no differences if its with http:// or not , its both the same