htaccess 301 whole domain
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !new-example.com$ [NC]
RewriteRule ^(.*)$ http://new-example.com/$1 [L,R=301]
htaccess 301 whole domain
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !new-example.com$ [NC]
RewriteRule ^(.*)$ http://new-example.com/$1 [L,R=301]
redirection 301 htaccess nom de domaine
#Redirection vers le nom de domaine principal
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on [NC,OR]
RewriteCond %{HTTP_HOST} !^www.domain1.com [NC]
RewriteRule ^(.*) https://www.domain1.com/$1 [R=301,L]
</IfModule>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us