索引文件存在并起作用。 当我创建的唯一行.htaccess文件:RewriteEngine on给出错误403
RewriteEngine On
在服务器上的任何页面给我:
禁止访问!
您没有权限访问请求的对象。它是 读取保护或服务器不可读取。
如果您认为这是服务器错误,请与网站管理员联系。 错误403 mysite.com星期三10月5日22时25分25秒2011的Apache/2.2.3 (的Linux/SUSE)
某些服务器信息:
加载模块的核心prefork的http_core mod_so mod_actions mod_alias中mod_auth_basic mod_authn_file模块mod_authz_host mod_authz_groupfile mod_authz_default mod_authz_user mod_authn_dbm mod_autoindex mod_cgi一样mod_dir mod_env指定mod_expires mod_include负责 mod_log_config mod_mime mod_negotiation模块mod_setenvif mod_ssl的 mod_suexec mod_userdir mod_rewrite的 mod_php5
Apache的版本:
SERVER_SOFTWARE的Apache/2.2.3(Linux的/ SUSE)
而且这样做:
Options FollowSymLinks
在目录节httpd.conf
日志说,错误的只是事实,而不是原因:
89.112.xx.x - - [05/Oct/2011:22:32:34 +0200] "GET /info.php HTTP/1.1" 403 1040 "-" "Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
::1 - - [05/Oct/2011:22:32:45 +0200] "GET/HTTP/1.0" 200 1 "-" "Apache/2.2.3 (Linux/SUSE) (internal dummy connection)"
感谢您的帮助!
请检查以下链接。它会帮助你 http://stackoverflow.com/questions/22621643/turning-rewriteengine-on-creates-403-error-how-to-turn-on-followsymlinks#answer-22623427 –