Last Updated: August 07, 2022
·
2.86K
· edgetor

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>

3 Responses
Add your response

Can you explain to me, exactly what's going on here?

over 1 year ago ·

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.

over 1 year ago ·

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.

over 1 year ago ·