aaP_hicmed1825 hi can someone help me redirect http://www.exemple.com/folder to http://exemple.com/folder i have this set it work fine for the main web page but not working in the folder RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] for now http to https work fine http://www.exemple.com to https://exemple.com work fine but cant fix http://www.exemple.com/folder to http://exemple.com/folder thank you
aaPanel_Kern aaP_hicmed1825 try RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*) http://%1/$1 [R=301,L] refer to
aaP_hicmed1825 thank you for the answer it gave me same result the main web page redirect without problem but in the folder same problem www.exxmple.com/test go to https://www.example.com/test while i want it to go to https://example.com/test *remove www in all folders *
aaPanel_Kern aaP_hicmed1825 It is recommended that you directly add the domain name to the site and directly use the domain name to access