Htaccess Redirect to External Site and Forward POST data while Changing address bar?

Unfortunately, the HTTP protocol does not support this.

Unfortunately, the HTTP protocol does not support this. When executing your first example, the web server sends the requesting browser a "Location" header telling the browser to navigate to a specified URL. The browser attempts to load this new URL like an ordinary web page, including displaying the URL in the browser's address bar.

Since the browser is the system loading the new URL, the browser must be the system to re-POST the submitted data. The web server can't do it. Unfortunately, the HTTP protocol does not provide a way for the web server to tell the browser to preform this re-POSTing.Is there an alternate way to achieve your goal?

I think that's not posible because to change URL in browser, HTTP server must return some response which will tell browser to send POST data to new URL. Which as far as I know is not posible without using javascript. When you've specified P option HTTP server is acting like a proxy server, hiding real source of data from browser.

I see 2 posible solutions: use GET instead of POST or create some script which runs on HTTP server and make POST redirects UPD: You can create PHP script which will be a handler for you redirect rules. The script should create following html code: "> $value):? > " value.

Alright, since . Htaccess can't do this - how can I use PHP to simply forward all POST data to an new URL while retaining the folder structure? I.e.

Domain1. Com/pages/page-new. Php redirects with all POST data to domain2.Com/pages/page-new.

Php – user189417 Oct 13 '09 at 23:05 I've updated answer – Ivan Nevostruev Oct 14 '09 at 0:00.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions