lundi 11 septembre 2017

Laravel not found CSS and JS file after deploy

I deploy my project to shared hosting and all my controllers, models etc works great but I have problem with CSS and JS file becouse for I have 404 errors for this files. On XAMPP server style and script files works great. In my opinion I my opinion it may be problem with my .htaccess file but I don't know how I can change in this file. My .htaccess file:

Options -MultiViews

RewriteEngine On

# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

# for main domain
   RewriteCond %{HTTP_HOST} ^(www\.)?mypage\.com$ [NC]
   RewriteCond %{HTTPS} on [OR]
   RewriteCond %{HTTP_HOST} ^www\. [NC]
   RewriteRule ^ http://mypage.com%{REQUEST_URI} [R=301,L,NE]

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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire