php - after using mod_rewrite link are not found -
i changed url from
http://example.com/admin/courses.php?id=1001
to
http://example.com/articles/1001
usig code
rewriteengine on rewriterule articles/([a-za-z0-9-]+)/?$ admin/courses.php?id=$1 [nc,l]
but after changing url, css, images, js link of course.php page automatically change
http://example.com/admin/css/style.css
to
http://example.com/articles/css/style.css
i need help
so want assets requested correctly? guess you're using incorrect relative paths linking in page's code (something "images/image.jpg"..). if that's folder structure have, try go 1 level , use path:
<img src="../admin/images/image.jpg" ...
or, in case specified:
<link href="../admin/css/style.css" ...
Comments
Post a Comment