Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

use htaccess to redirect in cpanel laravel

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{REQUEST_URI} !project/public/
RewriteRule (.*) /project/public/$1 [L]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #htaccess #redirect #cpanel #laravel
ADD COMMENT
Topic
Name
8+6 =