I have coded a PHP website on wamp server, in that I have used .htaccess file to rewrite the URL.
My .htaccess is like,
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^test.*$ test.php?id=
It does rewriting the URL like http://localhost/test/?id=5 to http://localhost/test/5
The issue is when I enter http://localhost/test it is loading the css correctly, but if I write http://localhost/test/ the css is blocked.
I have checked the que : .htaccess does not load css and js
but I can not figure it out why this happening. where I am wrong?