Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 访问/framework/main.php的权限_Apache_.htaccess_Mod Rewrite_Silverstripe - Fatal编程技术网

Apache 访问/framework/main.php的权限

Apache 访问/framework/main.php的权限,apache,.htaccess,mod-rewrite,silverstripe,Apache,.htaccess,Mod Rewrite,Silverstripe,我正在使用silver strip和一些我的htaccess文件是如何从FTP中删除的,然后我找到了silver strip的htaccess,现在我的htaccess是 ### SILVERSTRIPE START ### <Files *.ss> Order deny,allow Deny from all Allow from 127.0.0.1 </Files> <Files web.config> Order de

我正在使用silver strip和一些我的htaccess文件是如何从FTP中删除的,然后我找到了silver strip的htaccess,现在我的htaccess是

### SILVERSTRIPE START ###
<Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1

</Files>

<Files web.config>
    Order deny,allow
    Deny from all
</Files>

ErrorDocument 404 /assets/error-404.html
ErrorDocument 500 /assets/error-500.html

<IfModule mod_alias.c>
    RedirectMatch 403 /silverstripe-cache(/|$)
</IfModule>

<IfModule mod_rewrite.c>
    SetEnv HTTP_MOD_REWRITE On
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [QSA]

</IfModule>

### SILVERSTRIPE END ###
###银条开始###
命令拒绝,允许
全盘否定
允许从127.0.0.1开始
命令拒绝,允许
全盘否定
ErrorDocument 404/assets/error-404.html
ErrorDocument 500/assets/error-500.html
重定向匹配403/silverstripe缓存(/|$)
SetEnv HTTP_MOD_重写
重新启动发动机
重写基/
RewriteCond%{REQUEST_URI}^(.*$
重写cond%{REQUEST_FILENAME}-F
重写规则。*framework/main.php?url=%1&%{QUERY\u STRING}[QSA]
###银条端###
但我还是收到了同样的403期

有人知道我的htaccess有什么问题吗? 如果我遗漏了任何需要解释的内容,请务必告诉我。
非常感谢

确保在httpd.conf文件中设置了
AllowOverride All

当您得到403时,您试图访问的URL是什么??请提供有关
指令的信息,如果这是您在.htaccess中的全部信息,请提供httpd.conf中的信息。。你可能想把所有的内容都放进去,里面没有权杖。。此外,请提供错误日志。。