現在 AMember をインストールしようとしており、ファイルを FTP にアップロードしましたが、インストール リンクに移動するたびに次のように表示されます。
http://domain.com/amember/setup
次のエラー メッセージが表示されます。
———————————————————————————————————————</p>
「あなたのウェブホスティングは、aMember が必要とする mod_rewrite ルールをサポートしていないようです。いくつかの理由が考えられます:
ファイル amember/.htaccess をアップロードしていません (デフォルト設定では非表示または非表示になっている可能性があります)
お使いのウェブホスティングでは、mod_rewrite モジュールが有効になっていません。技術サポートに連絡して有効にしてください
あなたのウェブホスティングは、Apache ウェブサーバーとは異なるソフトウェアを使用しています。member/.htaccess ファイルにある書き換えルールを Web サーバーのネイティブ形式に変換する必要があります。詳細については、ウェブホスティング技術者にお問い合わせください。
aMember のインストールを続行できますが、mod_rewrite の問題が解決されるまで aMember は正しく機能しません。」
———————————————————————————————————————</p>
これを回避する方法が正確にはわかりません。私が使用しているホストは Hostmonster です。サポートに連絡したところ、mod_rewrites に関するページが表示されましたが、そこからどこに行けばよいかわかりません。
彼らが私に送ったページはここにあります: https://my.hostmonster.com/cgi/help/94
また、注目に値する場合は、AMember ディレクトリにある現在の .htaccess ファイルの内容を次に示します。
# Sample Nginx rules configuration:
# aMember rules (replace /amember to actual aMember Pro path from site root)
#
# location ~* ^/amember/.*\.(js|ico|gif|jpg|png|css|swf|csv)$ {}
# location ~* ^/amember/setup/index.php$ { try_files not-existing-file @php; }
# location ~* ^/amember/js.php { try_files not-exiting-file @php; }
# location ~* ^/amember/index.php$ { try_files not-existing-file @php; }
# location ~* ^/amember/public.php$ { try_files not-existing-file @php; }
#
# location ~* ^/amember/public { rewrite ^.*$ /amember/public.php; }
# location ~* ^/amember/setup { rewrite ^.*$ /amember/setup/index.php; }
# location ~* ^/amember { rewrite ^.*$ /amember/index.php; }
#
# you must already have something like that in your nginx configuration:
#
# location ~ \.php$ {
# try_files not-existing-file @php;
# }
# location @php {
# fastcgi_pass 127.0.0.1:9000;
# include fastcgi_params;
# }
#
# it is necessary to have @php section, as it is referred by aMember rules, and
# it must be located at bottom
#
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^public public.php [L]
RewriteRule ^js.php js.php [L]
RewriteRule !\.(js|ico|gif|jpg|png|css|swf|csv|html)$ index.php
</IfModule>
<IfModule mod_php5.c>
# php_flag magic_quotes_gpc off
</IfModule>
助けてくれてありがとう、Bc。