返回列表 发帖

.htaccess和500 Internal Server Error的解决之道!

.htaccess和500 Internal Server Error的解决之道!

.htaccess的生效时间是1小时到24小时。那么我们安装了一些插件,在启用这个文件后,有时忽略了这个时间,会发现系统出现500 Internal Server Error. 这时候会很焦急。

但其实最好的解决方法是:先不要管它,24小时之后再看看,会是什么情况。

我今天又碰到了这个情况,先是GG了很长时间,发现了这个帖子:

    avatar7 wrote:Guys, everyone of us would love to enable the seo settings. So disabling them is not the solution. I found a solution for my case. i was also getting the "no input file specified" error and couldn't figure out what to do until a friend told me that .htaccess sometimes is delayed to work especially with Godaddy's servers which was the case with me. That's right, All you have to do is wait a bit and it will supposedly work. In my case, i checked back after 24 hrs!! since my site is not launched yet, and the Seo thing was working.

    To Sum up : all you have to do is wait for few mins or even hours and hopefully the .htaccess will start working and you will have all the SEO settings working with no problem

OK!既然这样的话,我就拭目以待看看明天会是什么样的结果。

问题解决:
    * htaccess

joomla在gogaddy主机上如何设置.htaccess
Category: 网站优化, 网络推广

据说godaddy上的主机设置.htaccess很搞,一直没接触过,也不知到底如何搞。
最近帮一个朋友设置joomla的页面静态化,将htaccess.txt改为.htaccess后,按照要求怎么设置也不行,设置完后页面就无法显示了,提示“500内部服务器错误”,在网上查找资料,研究linux下的.htaccess的语法,看看有什么不符合语法的,但是改来改去的,还是不行。
后来,把 #RewriteBase / 改为 RewriteBase /后,问题搞定。godaddy的主机就是这么搞怪。o(∩_∩)o…
如果不会设置的话,就把下面的那段代码拷贝下来,然后把文件命名为.htaccess就行。

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

#
# mod_rewrite in use

RewriteEngine On

# 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

########## 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!
#
# Block out any script trying to set a mosConfig value through the URL
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

如果您碰到这样的问题,先不要急,按照上面的方法来做,多半是应该解决问题的。

请求斑竹考虑加分,谢谢!

中国站长 - 帖子版权1、本主题所有言论和图片纯属会员个人意见,与本论坛立场无关
2、本站所有主题由该帖子作者发表,该帖子作者与中国站长享有帖子相关版权
3、其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者和中国站长的同意
4、帖子作者须承担一切因本文发表而直接或间接导致的民事或刑事法律责任
5、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
6、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
7、中国站长管理员和版主有权不事先通知发贴者而删除本文

.htaccess 都是即时生效的啊。

TOP

基本都是即时生效。
GoDaddy的也是即时的。
美国KT FDC SL服务器代购咨询
代购交流论坛帮助咨询可联系QQ:81533223

TOP

原帖由 cpuer 于 2008-9-11 09:45 发表
基本都是即时生效。
GoDaddy的也是即时的。

我说的不是修改.htaccess,而是上传一个新的htaccess

TOP

有时是权限问题,我再打开dreamhost的采集函数试过!
先做人,后做事!
潜心学习SEO+PPC中!
羽雄的网赚博客

TOP

返回列表