ARNAB ARNAB - 1 year ago 113
PHP Question

Rewrite Rule not working for css, js and images

⁠⁠⁠File structure:


.htaccess file contain:

RewriteEngine on
RewriteBase /project/admin/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?PATH_INFO=$1 [L,QSA]

When I going through the following link every thing is working properly.


But when I going through the following link the css js and images are not loading


the css link is like that


Please help.

Answer Source

You have to just use full path to call css/js/images from a redirected page. eg: http://localhost/project/admin/css/style.css

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download