I found the solution in this post on stackoverflow.com
I know its old question, but just in case someone will still search for an answer. I just witness same errors.
if RewriteRule points from
you will see that your play.php file will try to include src=“play/myJS.js” which of course is not there so it returns 404 aka text/html.
In my case I ‘fixed it’ by adding R parameter so it redirects to new location. Down side of this is that address in the browser will change. Try changing [QSA,L] to [QSA,L,R].
Hope this helps.
when we use mod_rewrite all js file and all other part of our player src should write with full pass
for example if we use this URL
and this script in header :
after run script src ( i found it with Live Header in FireFox ) will be :
then return 404. Src should wirte in full path :