Answers for "how to 301 redirect in htaccess"

2

htaccess 301 whole domain

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !new-example.com$ [NC]
RewriteRule ^(.*)$ http://new-example.com/$1 [L,R=301]
Posted by: Guest on October-05-2021
-1

redirect htaccess 301

Redirect 301 /pagename.php http://www.domain.com/pagename.html
Posted by: Guest on June-12-2020

Browse Popular Code Answers by Language