分享

写回答

发帖

[提问] 为什么域名解析了反而打不开了

GoDaddy GoDaddy 2513 人阅读 | 10 人回复

发表于 2011-4-21 11:30:29 | 显示全部楼层 |阅读模式

常奇怪的问题,做网站的时候一直都是用IP直接打开的,开启SEF都正常,等我把域名解析到这个IP上,用域名直接打开网站的时候首页能打开,但是其他页面点开都会出现这个错误“
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


这个是什么问题呢? 我用IP直接打开网站所有页面都是正常的,用域名直接访问就会出现这个问题,关闭SEF之后用域名打开所有页面都可以,请问这个问题到底出在哪里?谢谢

用的是joomla做的网站

回答|共 10 个

lwbo1987

发表于 2011-4-21 11:43:26 | 显示全部楼层

检查下文件目录是否设置读写权限了,或者连接数据库的代码是否出错了,自己检查下相信的错误信息

chrislynn

发表于 2011-4-21 12:26:29 | 显示全部楼层

http://www.vistadisplay.net/about-us.html
RAKSmart

lwbo1987

发表于 2011-4-21 13:02:31 | 显示全部楼层

chrislynn

发表于 2011-4-21 17:02:06 | 显示全部楼层

应该是 .htaccess文件有问题
错误日志里面显示“Options +Indexes”
htaccess文件我已经从安装文件重新上传了还是这样,有谁在用joomla的,请教下

lwbo1987

发表于 2011-4-21 17:23:21 | 显示全部楼层

解决不了,只能联系godaddy客服检查了

大漠孤狼

发表于 2011-4-21 17:51:30 | 显示全部楼层

.htaccess都是什么内容?
错误提示里比较详细的提示发上来看看
我猜可能是引起无限循环转向之类的错误了,SEF一般都会考虑网址规范化,如果设置的域名不对就可能出现问题

chrislynn

发表于 2011-4-21 20:52:14 | 显示全部楼层

错误日志里面打开就只显示了“Options +Indexes”


.htaccess内容
##
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

chrislynn

发表于 2011-4-21 22:47:45 | 显示全部楼层

汗  郁闷了 改来改去还是不行

chrislynn

发表于 2011-4-21 23:33:43 | 显示全部楼层

奶奶的 终于搞定了 我在IXWEB上也同样装了下网站 一切都OK   汗 这个狗爹的空间太怪了 把 #RewriteBase / 改为 RewriteBase /后 才解决问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则