Not a JS question, but as I don't haunt other groups...
This is my first time trying out URL Rewrite.
I have a single page showing all articles. Given a parameter, it displays a single article:http://www.mysite.com/http://www.mysite.com/?article=999
I added a rewrite rule:
RewriteRule ^article/([0-9]+)/?$ ?article=$1 [NC,L]
Now, all my relative references are broken.
e.g. all references to <img src="images/icon.jpg"> etc give a 404 on:http://www.mysite.com/article/images/icon.jpg
That "article/" folder in the reference is the problem as the folder doesn't actually exist and was used for rewrite purposes only.
How do I get rid of it?