Skip to content

Instantly share code, notes, and snippets.

@ronnysuero
Forked from keithics/.htaccess
Created January 26, 2016 16:44
Show Gist options
  • Save ronnysuero/86303eb4ef4e5533c6a4 to your computer and use it in GitHub Desktop.
Save ronnysuero/86303eb4ef4e5533c6a4 to your computer and use it in GitHub Desktop.
Laravel and Shared hosting - Hostgator and without virtual host
AddHandler application/x-httpd-php53 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /public_html/DOMAIN.COM/public
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
#in /public_html/DOMAIN.COM/public/php.ini , turn off register_globals
#register_globals = Off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment