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
Post a Comment