PHP Developers Network
http://forums.devnetwork.net/

Laravel: Newbie questions + Shared hosting (one.com)
http://forums.devnetwork.net/viewtopic.php?f=72&t=144319
Page 3 of 3

Author:  hybris [ Sun Oct 15, 2017 2:36 pm ]
Post subject:  Re: Laravel: Newbie questions + Shared hosting (one.com)

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
Syntax: [ Download ] [ Hide ]
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    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}]
</IfModule>
 

Page 3 of 3 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/