1. Duplicate the server.php file
2. Rename index.php on server.php duplicate file.
3. Inside public folder .htaccess file copy and paste root folder
.ENV file is visible
<Files .env>
Order allow,deny
Deny from all
</Files>
2. Rename index.php on server.php duplicate file.
3. Inside public folder .htaccess file copy and paste root folder
.ENV file is visible
<Files .env>
Order allow,deny
Deny from all
</Files>
Example:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
<Files .env>
Order allow,deny
Deny from all
</Files>
</IfModule>
0 comments:
Post a Comment