Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

htaccess all requests goes to index.php

# eg. on cpanel, set document root to Laravels 'public' folder
# put .htaccess to 'public_html' / root directory

RewriteEngine on
RewriteBase /frameworkRootFolder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /frameworkRootFolder/index.php [L,QSA]
 
PREVIOUS NEXT
Tagged: #htaccess #requests
ADD COMMENT
Topic
Name
1+6 =