Php 使用htaccess进行文件夹公共访问
我真的不是Php 使用htaccess进行文件夹公共访问,php,apache,.htaccess,permissions,http-status-code-403,Php,Apache,.htaccess,Permissions,Http Status Code 403,我真的不是.htaccess的专家,我可以远程访问一个apache服务器,该服务器托管一个已经运行的php网站。我想创建一个数据文件夹,并授予其公共访问权限。现在,当我运行http://thewebsite.com/data。我检查了权限是否正常,我推断此错误一定与.htaccess Options -Indexes DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / Re
.htaccess
的专家,我可以远程访问一个apache服务器,该服务器托管一个已经运行的php
网站。我想创建一个数据
文件夹,并授予其公共访问权限。现在,当我运行http://thewebsite.com/data
。我检查了权限是否正常,我推断此错误一定与.htaccess
Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
选项-索引
DirectoryIndex.php
重新启动发动机
#重写基/
RewriteCond%{REQUEST_URI}^(.*)/(.*)$
重写规则%1/%2[R=301,L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
RewriteRule^.*$index.php?qa rewrite=$0&%{QUERY_STRING}[L]
有没有办法用一些
.htacess
规则来绕过这个403错误 我认为您正在寻找
指令,如:
<Directory "path/to/data">
Allow from all
</Directory>
通融