raksmart活动促销

分享

写回答

发帖

[提问] 技术问题,帮我看看吧,谢谢了

HostMonster HostMonster 5647 人阅读 | 10 人回复

发表于 2008-4-22 20:30:23 | 显示全部楼层 |阅读模式

Internal Server Error 500
http://www.nicolasyu.com/nic/untitled/
我感觉是.htaccess的一些脚步不被支持,请问如何修改,谢谢了.


# TENSE LOG ACCESS RULES
# It is not recommended that you modify this section. Any lines above or below
# it will be preserved, so you should make any changes there.

DirectoryIndex index.html index.htm index.php /library/index/index.php

ErrorDocument 401 /library/log/401.php
ErrorDocument 403 /library/log/403.php
ErrorDocument 404 http://www.nicolasyu.com/?viewerror=9

<IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType image/gif A2592000
        ExpiresByType image/jpeg A2592000
        ExpiresByType image/png A2592000
</IfModule>

# END TENSE LOG ACCESS RULES





另外一个文件夹下的,
# TENSE LOG ACCESS RULES
# This section will be rewritten every time you save your categories, so it is
# not recommended that you modify this section. Any lines above or below it will
# be preserved, so you should make your changes there.

DirectoryIndex index.php index.html index.htm /library/index/index.php

ErrorDocument 401 /library/log/401.php
ErrorDocument 403 /library/log/403.php
ErrorDocument 404 http://www.nicolasyu.com/nic/

<IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType image/gif A2592000
        ExpiresByType image/jpeg A2592000
        ExpiresByType image/png A2592000
</IfModule>

RewriteEngine on
RewriteBase /nic/

# Prevents directory contents from being viewed by adding a second slash on some servers.
RewriteCond        %{REQUEST_FILENAME}                -d
RewriteRule        ^/$                                                http://www.nicolasyu.com/nic/                [redirect,last]

# Add trailing slashes if they're missing
RewriteCond        %{REQUEST_FILENAME}                -d                                                        [or]
RewriteCond %{REQUEST_FILENAME}                !-f
RewriteRule        ^.+\.[:alnum:]+$                -                                                        [chain]
RewriteRule        ^(.+[^/])$                                http://www.nicolasyu.com/nic/$1/        [redirect,last]

# If it's not a file, redirect to Tense Log
RewriteCond %{REQUEST_FILENAME}                                                                !-f
RewriteCond %{REQUEST_FILENAME}/index.php                                        !-f
RewriteCond %{REQUEST_FILENAME}/index.html                                        !-f
RewriteCond %{REQUEST_FILENAME}/index.htm                                        !-f
RewriteCond %{REQUEST_FILENAME}/.tensecode/template.txt        !-f
RewriteRule ^(aboutrss|all|untitled|comments|entries|rss|styles)/.* /library/log/index.php?log=nic&offset=0

RewriteCond %{REQUEST_FILENAME}/index.php                                        !-f
RewriteCond %{REQUEST_FILENAME}/index.html                                        !-f
RewriteCond %{REQUEST_FILENAME}/index.htm                                        !-f
RewriteCond %{REQUEST_FILENAME}/.tensecode/template.txt        !-f
RewriteRule ^$                                                                                                /library/log/index.php?log=nic&offset=0

# END TENSE LOG ACCESS RULES

回答|共 10 个

潜水学习

发表于 2008-4-22 20:34:01 | 显示全部楼层

给你顶  等高人来回答
要不你去官方的帮助中心看看

nicworks

发表于 2008-4-22 20:51:20 | 显示全部楼层

谢谢了,我研究了2天了,和客服说了,他们都不会

大漠孤狼

发表于 2008-4-23 09:37:03 | 显示全部楼层

先访问下网站,然后到error log里面看一下错误日志,一般有比较详细的提示

nicworks

发表于 2008-4-23 10:42:52 | 显示全部楼层

老大终于来了,加我qq:12760005     急需帮助谢谢

nicworks

发表于 2008-4-23 13:37:06 | 显示全部楼层

/home/cnfinery/public_html/nicolasyu/nic/.htaccess: RewriteRule: cannot
compile regular expression '^.+\\.[:alnum:]+$', referer:
http://www.nicolasyu.com/?viewerror=9

nicworks

发表于 2008-4-23 16:27:50 | 显示全部楼层

提示是
/home/cnfinery/public_html/nicolasyu/nic/.htaccess: RewriteRule: cannot
compile regular expression '^.+\\.[:alnum:]+$', referer:
http://www.nicolasyu.com/?viewerror=9


compile regular expression '^.+\\.[:alnum:]+$', referer:
这个如何放置

大漠孤狼

发表于 2008-4-23 16:42:53 | 显示全部楼层

RewriteRule        ^.+\.[:alnum:]+$      
那就是你的rewrite的这个规则有问题,按照错误里面的变成 ^.+\\.[:alnum:]+$了

nicworks

发表于 2008-4-23 16:51:27 | 显示全部楼层

如何修改呢?谢谢

nicworks

发表于 2008-4-24 09:55:19 | 显示全部楼层

顶起,继续等待,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

nicworks

发表主题