php - Custom ModRewrite to redirect to controller method -


i using alipay posts responses opencart website url [on success] http://192.168.16.58:8080/index.php?route=api/order/callback.

however, 1 condition alipay stops reading url after ? separator, instead of posting data route, instead posts http://192.168.16.58:8080/index.php

because of this, interested in using rewriteengine write custom rule when set notify_url http://192.168.16.58:8080/index.php/api/order/callback, redirects http://192.168.16.58:8080/index.php?route=api/order/callback

what have following:

rewriterule ^index.php/api/order/callback.$ index.php?route=api/order/callback [l]

my logic if alipay going index.php/api/order/callback, instead redirected index.php?route=api/order/callback, however, using both , post, instead redirect opencart homepage.

rewriterule ^api/order/callback$ index.php?route=api/order/callback [l]

this enable:

http://192.168.16.58:8080/api/order/callback

to:

http://192.168.16.58:8080/index.php?route=api/order/callback


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -