Hey,
Not really sure this is the correct forum but then I'm not 100% there is one for Apache stuff.
So I would like to introduce SEO-Friendly URLs, i.e. turn
http://server.com/article.php?id=56
into
http://server.com/article/56/title-words-go-here
And I have the code for that for the .htaccess file
RewriteEngine on
RewriteRule ^article/([0-9]+)/(.*?)$ /article.php?id=$1
This works fine except that it screws up all my image and style sheet references, which are relative urls: "../images/xxxx.jpg" or "../styles/css.css".
Reading around it looks like the answer its to hard code them to an absolute path, i.e. http://server.com/styles/css.css
Is this really the only way or is there a complex way to do it with the rewrite engine?