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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -