Answers for "301 redirect htaccess"

1

htaccess redirect to https

RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^yourdomain\.com [OR]
RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com
RewriteRule .* https://yourdomain.com%{REQUEST_URI} [R=301,L]
Posted by: Guest on September-26-2020
1

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
0

redirect 301 htaccess

redirect 301 /url_antigua.html http://www.dominio-nuevo.com/url-nueva/
Posted by: Guest on December-01-2020
-1

redirect htaccess 301

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

301 redirect

301, "Moved Permanently"—recommended for SEO
302, "Found" or "Moved Temporarily"
Meta Refresh
Posted by: Guest on November-10-2020
0

301 redirect htaccess

RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ http://domain2.com/$1 [L,R=301,NC]
Posted by: Guest on January-21-2021

Browse Popular Code Answers by Language