Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

use htaccess to redirect in cpanel lsrsvel

DirectoryIndex index.php

RewriteEngine On 
RewriteRule ^$ public/index.php [L]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #htaccess #redirect #cpanel #lsrsvel
ADD COMMENT
Topic
Name
2+6 =