- 在线时间
- 306 小时
- 贡献
- 0
- 金钱
- 15
- 威望
- 0
- 最后登录
- 2011-10-30
- 注册时间
- 2008-7-23
- 帖子
- 645
- 精华
- 0
- 积分
- 386
- 阅读权限
- 70
- UID
- 4396

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
如果您碰到这样的问题,先不要急,按照上面的方法来做,多半是应该解决问题的。
请求斑竹考虑加分,谢谢! |
|