Answers for "redirect to public folder htaccess"

PHP
2

htaccess redirect to public folder

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/index.php?$1 [L,QSA]
Posted by: Guest on June-13-2020
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

Code answers related to "redirect to public folder htaccess"

Browse Popular Code Answers by Language