Answers for "redirect to another folder htaccess"

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
3

.htaccess redirect to another domain

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^OLDDOMAIN\.com$ [NC]
RewriteRule ^(.*)$ http://NEWDOMAIN.com [R=301,L]
Posted by: Guest on December-22-2020

Code answers related to "redirect to another folder htaccess"

Browse Popular Code Answers by Language