javascript - CSS not applying when url is "example.php/1/2" -
i doing site, blogplatform, info based on get. wanna show specific post if url "post.php/1/2" 1 user-id, , 2 post-id. when this, php-file doesnt find js nor css file. error: "resource interpreted stylesheet transferred mime type text/html:" , syntax error javascript, saying "unexpected <". works fine on other sites. i sorry describing bit bad, hope understand. otherwise i'll explain better! edit: gotta routing problem. if go on "post.php" works fine, "post.php/" troublesome. sounds using relative paths , 404 (or other html page) instead of desired css/js file. so try using absolute paths (begin path / , not ../) like: <link rel="stylesheet" type="text/css" href="/styles/main.css"> and not <link rel="stylesheet" type="text/css" href="../styles/main.css">