I would like domain to redirected from www to http//: xxx.com / in order to avoid duplicity SITE for better indexing in search engines.
I tried to change it through the section "Redirects", which, in turn, reports:
"You cannot redirect" "to" http://xxx.com "as this will cause a redirection loop because" / home / username / public_html / "is at the same place as" / home / username / public_html / ."
How nevertheless do it?
In advance I thank you for the help me.
Thank you for your question. You can force all sites to load with or without the "www," I recommend following our guide here, as it explains how to code your .htaccess file.
If you have any further questions, feel free to post them below.
Thank you,
-John-Paul
Dear John-Paul!
Thanks for your answer!
But something does not work this directive :
# Force non-www:
RewriteEngine on
RewriteCond% {HTTP_HOST} ^ www \. Example \. Com [NC]
RewriteRule ^ (. *) $> Http://example.com/ $ 1 [L, R = 301]
Redirection is not happening!
In addition, pops up a window for a username and password.
How to get rid of the showing this window which constantly pops up after you enter the address with the www.xxx.com?
I went and tested the domain name - it's changing the URL to the non-WWW version as per the request. If I type www.online-unity.com, it changes to "online-unity.com".
Please make sure to clear your browser cache. It should be working with no problems. I added the lines to your .htaccess file - the one you had active on your account was blank.
Please let us know if you continue to require any further assistance.