[提问]
求助godaddy delux linux空间伪静态规则问题!
|
|
最近新买的godaddy delux 150g linux 空间。
用相同的程序,完全一样的文件。在其他服务器上(包括godaddy的免费空间linux空间)都可以正常的伪静态使用。
唯独放在新买的godaddy delux 150g linux 空间,伪静态一点不起作用。404。
奇怪了,大家帮帮忙,找找解决方法。困扰小弟很多天了。
同样的程序
在godaddy免费空间,可以伪静态,使用正常。
http://test.gaorui.info/Ask/216902622.htm
收费空间,就不能使用了
http://www.shuibei.tk/Ask/216902622.htm
.htaccess文件内容如下:- RewriteEngine On
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)Ask/(.+)$ $1/Ask\.php\?$2
- RewriteRule ^(.*)List/(.*)$ $1/List\.php\?$2
复制代码 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-8-28 09:42:33
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
raycole
发表于 2010-8-28 12:50:37
|
显示全部楼层
改放到收费空间根目录下一样 无效
是不是我这个空间有问题? |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-8-28 14:43:42
|
显示全部楼层
|
把免费主机的程序打包,然后放到收费主机的一个子目录试试 |
|
|
|
|
|
|
|
|
|
|
raycole
发表于 2010-8-28 16:19:37
|
显示全部楼层
斑竹 照做了 不行了。老样子。
问了下godaddy客服.回复如下:
Thank you for contacting Online Support.
We have reviewed your account and could not find any issues with the hosting account. The type of error you are experiencing is most likely caused by coding or scripting. Unfortunately, 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:
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.
Please let us know if we can assist you in any other way.
Sincerely,
Bobby P.
Online Support |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-8-28 16:24:50
|
显示全部楼层
|
|
|
|
|
|
|
|