Getting Laravel 4 to Work on GoDaddy
.htaccess file needed (in /public) to remove index.php from url and allow PUT an DELETE requests for resources.
<Limit GET POST PUT DELETE>
Allow from all
</Limit>
<IfModule mod_rewrite.c>
Options -Multiviews
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Written by EdgeTor
Related protips
3 Responses
Can you explain to me, exactly what's going on here?
Laravel performs best on a vps or cloud server. On cpanel based shared hosting servers, getting Laravel to work is not that easy. It requires htaccess rewrite as you have mentioned. On Laravel cloud hosting servers, you have access to SSH. So, you can use composer to install Laravel in just few minutes.
On a VPS or cloud server, Laravel works well. Getting Laravel to run on cpanel-based shared hosting servers isn't straightforward. As you indicated, htaccess rewrite is required. SSH access is available on Laravel cloud hosting servers. As a result, the composer may be used to quickly install Laravel.