views:

93

answers:

1

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?

+1  A: 

You might want to look at Apache mod_proxy. You're looking for a "reverse proxy"

http://httpd.apache.org/docs/1.3/mod/mod%5Fproxy.html

Travis