njardim
posted this
05 January 2024
Create an .htaccess file in the root of your website with the following content and everything will be redirect to https://your-domain.com:
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.)$ https://your-domain.com/$1 [R=301,NE,L]
RewriteCond %{HTTP_HOST} ^www.
RewriteRule ^(.)$ https://your-domain.com/$1 [R=301,NE,L]
Create an .htaccess file in the root of your website with the following content and everything will be redirect to https://your-domain.com:
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://your-domain.com/$1 [R=301,NE,L]
RewriteCond %{HTTP_HOST} ^www\.
RewriteRule ^(.*)$ https://your-domain.com/$1 [R=301,NE,L]