AMember Pro - .htaccess和mod_rewrite

时间:2013-09-09 18:08:30

标签: .htaccess mod-rewrite amember

我正在尝试安装AMember,我已经将文件上传到FTP,但是,无论何时我导航到安装链接:

http://domain.com/amember/setup

我收到此错误消息:

----------------------------------------

“看起来您的虚拟主机不支持会员所需的mod_rewrite规则。可能有以下几个原因:

你还没有上传文件amember / .htaccess(它可能是默认设置隐藏和隐藏)

您的虚拟主机没有启用mod_rewrite模块。联系技术支持以启用它

您的网站托管使用的软件与Apache网络服务器不同。它需要将位于/ member / .htaccess文件中的重写规则转换为Web服务器本机格式。有关详细信息,请联系webhosting技术。

您可以继续安装会员,但在解决mod_rewrite问题之前,会员将无法正常工作。“

----------------------------------------

我不确定如何解决这个问题。我正在使用的主持人是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。

0 个答案:

没有答案