Installation

Remove Public From URL

  • To remove public from URL create .htaccess file in root folder and write following code.

<IfModule mod_rewrite.c>
	RewriteEngine On 
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
  • To remove public from URL and Force HTTPS redirection create .htaccess file in root folder and write following code.

<IfModule mod_rewrite.c>
	RewriteEngine On 
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

Hide or Denied Access .env

To Hide or Denied Access .env and create .htaccess file in root folder and write following code.


# Disable Directory listing
Options -Indexes

# block files which needs to be hidden, specify .example extension of the file
</FilesMatch "^\.env">
    Order allow,deny
    Deny from all
<//FilesMatch>

Debug Mode?

Debug mode will help you to track the error on your website. It is not preferred to turn the debug mode on live site for very long time.

How to turn debug mode on

  • Login to you FTP account.

  • Open and edit .env file.

Change

APP_DEBUG=false

To

APP_DEBUG=true

  • Save and upload the file.

false means debug mode is OFF true means debug mode is ON

419 Error

Make sure php version is 7.2 and set PHP setting as follows. It shows due to session not save.

Last updated

Was this helpful?