html - RewriteEngine + Javascript -
i enabled rewriteengine in order handle url in mvc app.
the problem is, when try include javascript file (relatively) weird behavior after type additional "/".
when use absolute file (which want avoid in html files)
<!doctype html> <html> <head> <script src='app/libs/jquery-3.2.1.js'></script> <meta charset="utf-8"> </head> <body> <form id="login"> <input id="usr" type="text" value="username"><br> <input id="pw" type="password" value="password"><br> <input type="submit"> </form> </body> </html>
.htaccess
options -indexes rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(.+)$ index.php?url=$1 [qsa,l]
as type "localhost/project/test/" get:
syntaxerror: expected expression, got '<'
anyone has idea?
thank you!!
wiki
Comments
Post a Comment