any update to this fix
WWW Canonicalization
JAY
I have no way to reproduce this problem. I checked and judged that the two domain names are the same to trigger this error, but www.domain.com and domain.com are obviously not the same.
I have the same problem.
I have a domain added a domain domain.com to aapanel
After that to solve the problem I added another domain www.domain.com and redirected this domain to
https://domain.com
The redirection worked but we still have a third domain:
https://www.domain.com
This combination will not be redirected. It will be redirected to the index of the first website created on aapanel. Adding this code to .htaccess doesn’t solve the problem.
RewriteEngine On
RewriteCond %{SERVER_PORT} !443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} www.domain.com$ [NC]
RewriteRule .*$ https://domain.com/$1 [R=301,L]
Thank you for the great script!
Do you have a solution for this problem?
timwe1p
do you mean
https://www.domain.com Redirect to https://domain.com not work?
v1sh4l
This problem may be caused by your www.domain.com not deploying ssl but using https access
aaPanel_Jose
the same i was telling from day one. now domain is working on both www.domain.com and domain.com its not good for seo i want domain to open only on domain.com
so i need to redirect from www.domain.com to domain.com. which is not happening from panel
JAY My settings for www to non-www redirect. Works Well.
aapanel_user
its working because your domain was registered as www.domian.com and this option may be removed as new redirect option is enabled.
- Edited
This problem is happening to me too, when accessing my blog https://meublog.com it works normal, more as stated in the browser https://www.meublog.com it does not work from the error. Why does this happen, and how to fix it ???
I confess that I even stopped using this panel because of this error? but now I'm back and I want to try to fix it, but how do you do it ???
- Edited
check how plesk hav option to create domain ..
@aaPanel_Jose It's works. Its necessary add 2 domains with "www" and "non www"