drupal htaccess的错误

在windows平台下安装 drupal一打开drupal目录的时候有时候会发生一个错误,500错误。查看记录文件时这么描述的

[Sat Apr 10 20:48:31 2010] [alert] [client 127.0.0.1] D:/green/APMServ5.2.6/www/htdocs/drupal/.htaccess: order not allowed here

[Sat Apr 10 20:48:32 2010] [alert] [client 127.0.0.1] D:/green/APMServ5.2.6/www/htdocs/drupal/.htaccess: order not allowed here

[Sat Apr 10 20:48:50 2010] [alert] [client 127.0.0.1] D:/green/APMServ5.2.6/www/htdocs/drupal/.htaccess: order not allowed here

[Sat Apr 10 20:49:04 2010] [alert] [client 127.0.0.1] D:/green/APMServ5.2.6/www/htdocs/drupal/.htaccess: order not allowed here

[Sat Apr 10 20:49:43 2010] [alert] [client 127.0.0.1] D:/green/APMServ5.2.6/www/htdocs/drupal/.htaccess: order not allowed here

[Sat Apr 10 20:49:49 2010] [alert] [client 127.0.0.1] D:/green/APMServ5.2.6/www/htdocs/drupal/.htaccess: order not allowed here

 

最后面我们修改htaccess文件 

# Protect files and directories from prying eyes.

#<FilesMatch "/.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(/.php)?|xtmpl|svn-base)$|^(code-style/.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">

#  Order allow,deny

#</FilesMatch>

#DirectoryIndex index.php
这两条前面都注释下,因为没有权限。apache配置文件设置不能更改这些权限。当然我们也可以修改apache配置好,然后重新启动。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值