私はcodeigniter上に構築されたWebサイトを持っており、PPIPNをそれで動作させようとしています。CI固有のライブラリをいくつか見てきましたが、スタンドアロンのIPNファイルが必要です。
基本的に、私はCIをWebサイトのルートにインストールしており、ルートにも別のディレクトリ「pp」があります。
Paypalのサンドボックスを使用してIPNをテストしようとしていますが、404が返され、ファイルに直接アクセスすることもできません。
これが私の.htaccessファイルです:
XSendFile on
Options -Indexes
Options +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
### Canonicalize codeigniter URLs
RewriteRule ^(index(/index)?|index(\.php)?)/?$ / [L,R=301]
RewriteRule ^(.*)/index/?$ $1 [L,R=301]
# Removes trailing slashes (prevents SEO duplicate content issues)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]
RewriteCond %{HTTP_HOST} !^(www) [NC]
RewriteRule ^(.*)$ http://www.mysite.net/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|pp|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# Without mod_rewrite, route 404's to the front controller
ErrorDocument 404 /index.php
</IfModule>
それが本当に明白なものであることを願っています!
ありがとう、
ライアン