Laravel: Newbie questions + Shared hosting (

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Forum Contributor
Posts: 172
Joined: Wed Sep 25, 2013 4:09 am

Re: Laravel: Newbie questions + Shared hosting (

Post by hybris »

Ok so I finally fixed it!

there was some error in .htaccess in the public folder..

I tried to remove the .htaccess file and then it didnt give me error when i was messing with <Directory /var/www/html/Test/public> in the 000-Default-le-ssl.conf file
so I copied another .htaccess file to Test/public and then it worked :O

copy of the working .htaccess file if anyone ever runs into this problem in the future

Code: Select all

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Post Reply