Forum Moderators: phranque
I'm wondering if there is a solution to one of these problems I have...
I would like to take a url like this: domain.com/anotherdomain.com?p=1&g=2
and make it post everything after / to index.php and not use the get method.
OR...
I would like to take the url like this: domain.com/anotherdomain.com?p=1&g=2 and change the ? to Q and & to A.
Thanks!
After that is done, then you could add mod_rewrite code to take incoming client requests for URLs ending with /Qp=abcAg=xyz and rewrite them to end with /?p=abc&g=xyz.
Jim
Once those URLs are changed on you pages, mod_rewrite can "re-connect" them with the resources inside your server, such as changing Q back to "?" and A back to &, so that you can call your script and have it work.
And as stated, mod_rewrite cannot change POSTs to GETs or vice-versa, because it does not have access to the HTTP message-body.
See the tutorials in our Apache Forum Library if this is not clear.
Jim