Paypal无法访问我的网站(IPN,.htaccess)

时间:2013-03-19 17:49:23

标签: php .htaccess paypal-ipn

当有人在我的opencart网站上使用paypal标准付款时,付款已完成,但IPN通知永远不会到达我的网站。 返回地址很好,但似乎paypal无法访问我的网站。

我的.htaccess文件或托管设置中是否有可以更改的内容?我真的不知道现在该做什么。

我甚至在我的网站上创建了一个名为ipn.php的虚拟php脚本,它在打开时向我发送了一封电子邮件。我把它的地址给了paypal作为通知地址,但它既没有被调用也没有!

更新:在Paypal的沙箱中使用IPN模拟器测试后,我收到以下错误: IPN传递失败:I / O错误:连接超时;嵌套异常是java.net.ConnectException:连接超时

我的htaccess文件:

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. 

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 

#RewriteBase /
RewriteRule sitemap.xml /farmaciagimeno.com/index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) /farmaciagimeno.com/index.php?_route_=$1 [L,QSA]


### Additional Settings that may need to be enabled for some servers 
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

RedirectMatch 301 ^/farmaciagimeno.com(.*)$ http://www.farmaciagimeno.com$1

0 个答案:

没有答案