ezbotchat How I can redirect www.domain.com to https://domain.com (domain.com) When i setup redirect. It not working. But non www ( https://domain.com ) is working fine. I using lastest aapanel and cloudflare.
TrK if you are on apache adding these rules to .htaccess may help RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
TrK ezbotchat Not a nginx expert but adding the below code to your website config file can do the trick server_name "~^www\.(.*)$" ; return 301 $scheme://$1$request_uri ;
roniel I cant redirect http://www.revistacafecomsociologia.com/ to non www (http://revistacafecomsociologia.com/) I try 2 ways: 1- site redirect 2- htacess redirect RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} www.(.*)$ [NC] RewriteRule .*$ https://%1/$1 [R=301,L] The two methods failed.
Ayesha_Maduranga hell when i typed my domain with www.mydomain.com it will direct to correct index file but when i typed without www. only mydomain.com it will direct to apache server folder htdocs folder how can i correct this??
aaPanel_Kern Ayesha_Maduranga Hello, try to add the domain name without www to the relevant site, the browser using traceless mode to try