raksmart活动促销

分享

写回答

发帖

能不能翻译一下回复的邮件(已解決問題)

英文翻译专版 英文翻译专版 2940 人阅读 | 8 人回复

发表于 2011-9-5 10:44:19 | 显示全部楼层 |阅读模式

Thank you for contacting Online Support.

We see that you are having issues with the website for ggblackberry.com. We have reviewed your account and could not find any issues. The type of error you are experiencing is most likely caused by coding or scripting. Because we do not provide coding support, we are unable to determine what specifically in your code may be causing the error. However, the following may be of some assistance in diagnosing the problem:

It does not appear that you have mod_rewrite enabled. Mod_rewrite is an Apache Web server module installed on all of our Linux servers by default; it does not have to be installed or enabled. Our Linux hosting accounts support most mod_rewrite functions.

Because enabling mod_rewrite is handled at a global level, you do not need to enable it in your
httpd.conf
file. You only need to add the desired code to the body of your
.htaccess
file.



Our environment uses the vendor-provided code from Apache for mod_rewrite. Current Apache HTTPD documentation is accurate with regard to how to use
.htaccess
files.



For more information about mod_rewrite see the Apache Module mod_rewrite documentation.




NOTE: The .htaccess file containing the rewrite rules must be in the same directory as the target files.



You may wish to review your code to determine if there are any issues, because it appears that is the most likely cause of the error. You may also wish to enable detailed error messages as a temporary diagnostic measure. The procedure for this will vary, depending on the scripting language being used. We also recommend consulting both the vendor's online documentation, as well as the large number of online forums dedicated to coding and scripting.

If you determine there is no issue with the code itself and believe the issue is server related, please reply with specific evidence of this and we will investigate the matter further.

If we can assist you further in this matter please let us know.

Sincerely,
Jesse P
Online Support Team

回答|共 8 个

ayfc

发表于 2011-9-5 10:47:42 | 显示全部楼层

好像说是Apache的相关模块已经启动

要修改htaccess文件,可是不知道怎么修改。。。
回复 支持 反对

使用道具 举报

nisheng

发表于 2011-9-5 11:17:36 | 显示全部楼层

可能是没有开启mod_rewirte规则,你在.htaccess加入以下代码试试,不过他们说可能是程序编码或脚本引起这个错误的,叫你再自己检查下!
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
</IfModule>
回复 支持 反对

使用道具 举报

ayfc

发表于 2011-9-5 11:49:28 | 显示全部楼层

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>


这个是目录下面的.htaccess,把$1改成$2吗?
回复 支持 反对

使用道具 举报

nisheng

发表于 2011-9-5 11:57:17 | 显示全部楼层

单个把$1改成$2估计不行,可以将那一行更换下试试可行!
回复 支持 反对

使用道具 举报

ayfc

发表于 2011-9-5 12:05:09 | 显示全部楼层

我把:RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
换成:RewriteRule ^(.*)-htm-(.*)$ $1.php?$2

还是不行,删除缓存,一点变化都没有。。。
回复 支持 反对

使用道具 举报

nisheng

发表于 2011-9-5 12:45:15 | 显示全部楼层

那你还是改为原来的吧!
回复 支持 反对

使用道具 举报

ayfc

发表于 2011-9-5 14:55:26 | 显示全部楼层

终于弄好了,太感谢你了,程序是Thinkphp的,我把方法分享一下:
1.修改好.htaccess
2.修改文件上的Conf/config.php
   把//'URL_MODEL'=>2,   去掉"//"

刷新下网页就好了!

现在还在找后台,还有其他配置的文件!

我的站是:http://www.ggblackberry.com
回复 支持 反对

使用道具 举报

nisheng

发表于 2011-9-5 15:22:52 | 显示全部楼层

解决就好,现在网站是正常了,可能修改config.php配置后文件路径正确了就可以了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则