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">


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -