Help with LAMP server redirect to index.php causing CSS file problem
Budget: $10 – $30 USD
I have an ubuntu 20.04 LTS virtual LAMP server and I have set it up to redirect all traffic from the domain to index.php using .htaccess. But now it is blocking the CSS and JS files from being found.
Everything goes to domain.com/index.php
But inside domain.com/index.php it refers to /css/style.css and /js/jquery.min.js etc.
Now it is giving a 404 error for the CSS and JS files because it is sending the request back to index.php.
I have been told there is a way to fix this within apache, but I am unable to figure out how. I have tried with ChatGPT but still no luck. Therefore I need someone to tell me how to fix this.
Thanks
Everything goes to domain.com/index.php
But inside domain.com/index.php it refers to /css/style.css and /js/jquery.min.js etc.
Now it is giving a 404 error for the CSS and JS files because it is sending the request back to index.php.
I have been told there is a way to fix this within apache, but I am unable to figure out how. I have tried with ChatGPT but still no luck. Therefore I need someone to tell me how to fix this.
Thanks