Answers for "docusaurus HTTP redirect (301, 302)"

PHP
1

301 redirect http to https

#For apache .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Posted by: Guest on October-02-2020
-1

301 and 302 redirect

301 redirect is a permanent redirect
302 redirect is a temporary redirect
Posted by: Guest on December-12-2020

Browse Popular Code Answers by Language