I deployed my Laravel project on Debian server with apache, and routes are not working, but it works fine on my local machine (Linux Mint).
I have not setup virtual host yet, so:
"//ip_address/my-project/public/" opens my homepage, but css and js files are not loaded.
//ip_address/my-project/public/workers
throws 404 error, and //ip_address/my-project/public/index.php/workers
opens that route, but still .css and .js files are not loading.
Here is my .htaccess file in /public folder:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# 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]
</IfModule>
I've found same topics here on SO, but they didn't help me.
P.S. rewrtie mod is enabled.