lundi 24 avril 2017

PHP url rewriting CSS not working

I am working on a PHP application , which generates the following link

http://localhost/24_2_april/video-library/2/Programming-Language

but ever since i have used htaccess to make my URL clean , since then the CSS and JS are not working . Now i know i could give the absolute path for the cSS , but i don't think that would be the right approach , also i tried using RewriteCond %{REQUEST_FILENAME} !-f , but no luck so far ....

This is my htaccess code so far.

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^video-library/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ var/www/html/24_2_april/video.php?cat_id=$1&category=$2 [L]
RewriteRule ^video-library/([A-Za-z0-9-]+)/?$ var/www/html/24_2_april/search_results.php?cat_id=$1 [L]




Aucun commentaire:

Enregistrer un commentaire