全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 7299|回复: 4

joomla在GoDaddy主机上设置.htaccess办法

[复制链接]
发表于 2008-7-29 13:44:27 | 显示全部楼层 |阅读模式
使用GoDaddy的主机,在设置joomla的页面静态化,将htaccess.txt改为.htaccess后,按照要求怎么设置也不行,设置完后页面就无法显示了,提示“500内部服务器错误”,在网上查找资料,研究linux下的.htaccess的语法,看看有什么不符合语法的,但是改来改去的,还是不行。
后来,把 #RewriteBase / 改为 RewriteBase /后,问题搞定。godaddy的主机就是这么搞怪。
如果不会设置的话,就把下面的那段代码拷贝下来,然后把文件命名为.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
发表于 2008-8-13 12:01:22 | 显示全部楼层
举报,复制创建,但是没法使用
 楼主| 发表于 2008-8-13 13:23:59 | 显示全部楼层

回复 2# 的帖子

发表于 2010-11-4 15:10:35 | 显示全部楼层
   很久之前也被这个烦过
发表于 2010-11-4 17:45:02 | 显示全部楼层
ixweb的空间也是这样
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-3-29 17:54 , Processed in 0.058090 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表