Ya'all are my last chance to somehow solve this issue that's been stalling me for the past 2 weeks and I have not managed to find an answer.
I have my website hosted on Hostinger with Laravel 5.1 installed.
I'm trying to link my css files from the public/css folder but I always get net::ERR_ABORTED error when it's trying to load the files.
My /public/.htaccess file is as follows:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ / [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(css|js|images)/(.*)$ public// [L,NC]
RewriteRule ^ index.php [L]
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
The one from the root is as follows
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteRule ^ index.php [L]
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteRule ^(.*)$ public/ [L]
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ / [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteRule ^(css|js|images)/(.*)$ public// [L,NC]
</IfModule>
I've tried linking the css files with all of these ways
<link type="text/css" rel="stylesheet" href="{!! asset('/css/style.css') !!}">
<link type="text/css" rel="stylesheet" href="{{ asset('/css/style.css') }}">
<link type="text/css" rel="stylesheet" href="{!! asset('css/style.css') !!}">
<link type="text/css" rel="stylesheet" href="{{ asset('css/style.css') }}">
{!! Html::style('css/style.css') !!}
{!! Html::style('/css/style.css') !!}
<link type="text/css" rel="stylesheet" href="/css/style.css">
<link type="text/css" rel="stylesheet" href="css/style.css">
None has proved to work and I honestly see no other way to actually link and use the css files I have. I'm stuck on this and I'm actually desperate to find a way to make it work.
All of the css/js files are in /public/css/ or /public/js/
Help a coder out 'cuz I feel like just quitting this. I don't know if the .htaccess files are somehow restricting the acces or what is happening.
Cheers, G.