Skip to content

Instantly share code, notes, and snippets.

@stuartelimu
Created July 6, 2019 11:28
Show Gist options
  • Save stuartelimu/9dced420b5f6815c17b9d58bec111dfd to your computer and use it in GitHub Desktop.
Save stuartelimu/9dced420b5f6815c17b9d58bec111dfd to your computer and use it in GitHub Desktop.
Laravel setup file for infinityfree.net
##################################################
#
# Replace the fields with your app and domain name
#
##################################################
DirectoryIndex <app name>/public/index.php index.html index.htm index2.html
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?<domain name>$
RewriteCond %{REQUEST_URI} !^<app name>/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ <app name>/public/$1
RewriteCond %{HTTP_HOST} ^(www.)?<domain name>/$
RewriteRule ^(/)?$ <app name>/public/index.php [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment