mod rewrite - Redirect POST-request in apache -


i'm trying transparent redirect of post-request in apache server.

the request looks this:

post www.domain.com//maincontroller.php/api 

i want redirect to:

post www.domain.com/maincontroller.php/api 

i don't want 301 redirect instead silent redirect (edit post address , send httpd).

everything tried mod_rewrite didn't rewrite post, rewrote get.

coworker found !

    rewritecond %{the_request} post     rewritecond %{the_request} ^[a-z]+\s//+(.*)\shttp/[0-9.]+$ [or]     rewritecond %{the_request} ^[a-z]+\s(.*/)/+\shttp/[0-9.]+$     rewriterule .* http://%{http_host}/%1 [p] 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -