Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache IPN重定向的htaccess和mod_重写_Apache_.htaccess_Mod Rewrite_Paypal Ipn_Recurring Billing - Fatal编程技术网

Apache IPN重定向的htaccess和mod_重写

Apache IPN重定向的htaccess和mod_重写,apache,.htaccess,mod-rewrite,paypal-ipn,recurring-billing,Apache,.htaccess,Mod Rewrite,Paypal Ipn,Recurring Billing,我更改了Paypal的IPN地址,并希望使用htaccess规则将消息转发给新的处理程序,但我无法使其工作 下面的代码有什么问题? --我希望它将/?page=gf\u paypal\u ipn的请求重定向到,但它不工作!啊!请帮忙 <IfModule mod_rewrite.c> RewriteCond %{REQUEST_URI} ^/?page=gf_paypal_ipn [NC] RewriteRule ^.*$ https://www.gfreely.com/members

我更改了Paypal的IPN地址,并希望使用htaccess规则将消息转发给新的处理程序,但我无法使其工作

下面的代码有什么问题? --我希望它将/?page=gf\u paypal\u ipn的请求重定向到,但它不工作!啊!请帮忙

<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} ^/?page=gf_paypal_ipn [NC]
RewriteRule ^.*$ https://www.gfreely.com/members/payment/paypal-pro/ipn [P]
</IfModule>

RewriteCond%{REQUEST\u URI}^/?page=gf\u paypal\u ipn[NC]
重写规则^.*$https://www.gfreely.com/members/payment/paypal-pro/ipn [P]
基于此,我们应该做到以下几点:

RewriteCond %{QUERY_STRING}     ^page=gf_paypal_ipn    [NC]
RewriteRule ^.*$ https://www.gfreely.com/members/payment/paypal-pro/ipn [P]