I am trying to write a virtual host rule (Apache) to rewrite URLs contained within html. What I am trying to do, is to automaticaly direct URLs for directories containing static files - eg. www.mysite.com/css/ to a domain specificaly set up to server static content (eg. static.mysite.com/css/
I have tried version permutations of:
ProxyHTMLURLMap /css/ http://static.mysite.co.uk/css/
But it doesn't work. The tags being serviced are eg: /css/main.css which I would like to be rewritten to static.mysite.co.uk/css/ma
in.css before being served up by Apace.
My reason for doing this is to get static content served by nginx and from a cookie free domain, but without too much messing around with the development environment (cakephp)
Hope you can help..