Answers for "htaccess redirect tohttps"

PHP
0

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 redirect to html page

RedirectMatch 301 ^/blog/about /blog/about.html
Posted by: Guest on December-03-2020

Browse Popular Code Answers by Language