设为首页收藏本站

站长论坛

 找回密码
 注册

用新浪微博连接

一步搞定

QQ登录

只需一步,快速开始

查看: 5820|回复: 4

.htaccess和500 Internal Server Error的解决之道! [复制链接]

Rank: 2

  • TA的每日心情

    2010-8-25 09:29:15
  • 签到天数: 47 天

    [LV.5]常住居民I

    论坛记者勋章

    发表于 2008-9-11 07:59:00 |显示全部楼层
    .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

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

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

    Rank: 1

    该用户从未签到

    论坛记者勋章

    发表于 2008-9-11 08:59:06 |显示全部楼层
    .htaccess 都是即时生效的啊。

    使用道具 举报

    荣誉嘉宾

    Castro

    Rank: 8Rank: 8

    该用户从未签到

    论坛记者勋章

    发表于 2008-9-11 09:45:19 |显示全部楼层
    基本都是即时生效。
    GoDaddy的也是即时的。
    美国KT FDC SL服务器代购咨询
    代购交流论坛帮助咨询可联系QQ:81533223

    使用道具 举报

    Rank: 2

  • TA的每日心情

    2010-8-25 09:29:15
  • 签到天数: 47 天

    [LV.5]常住居民I

    论坛记者勋章

    发表于 2008-9-11 10:16:43 |显示全部楼层
    原帖由 cpuer 于 2008-9-11 09:45 发表
    基本都是即时生效。
    GoDaddy的也是即时的。

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

    使用道具 举报

    Rank: 7Rank: 7Rank: 7

  • TA的每日心情

    2010-3-23 12:00:01
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    论坛记者勋章 一年注册纪念勋章 发贴过千纪念勋章 在线过千纪念勋章

    发表于 2008-9-11 10:23:41 |显示全部楼层
    有时是权限问题,我再打开dreamhost的采集函数试过!
    先做人,后做事!
    潜心学习SEO+PPC中!
    羽雄的网赚博客

    使用道具 举报

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

    Archiver|手机版|站长 ( 鄂ICP备05005572号 )  

    GMT+8, 2012-2-5 13:24

    Powered by Discuz! X2

    © 2001-2011 Comsenz Inc.

    回顶部