I'm looking for a way to use PHP and possibly .htaccess to create a proxy that would essentially create a "dynamic mirror" of one site.
Example: http://myawesome.proxy/questions/ask would fetch http://stackoverflow.com/questions/ask and return it to the browser with absolute URLs properly rewritten. Then I could log in and submit a question through that proxy.
What is the best way to do this?