Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.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
Php .htaccess-允许从一个URL访问目录_Php_Apache_.htaccess - Fatal编程技术网

Php .htaccess-允许从一个URL访问目录

Php .htaccess-允许从一个URL访问目录,php,apache,.htaccess,Php,Apache,.htaccess,我当前的.htaccess文件如下所示: RewriteEngine On RewriteCond %{HTTP_REFERER} !^https?://mysite.com/page/ [NC] RewriteRule ^ - [L,F] 并允许从/page/上的iframe访问的人访问“受限”区域中的index.php文件。但是,当我遇到403错误时,如何允许访问该目录中的所有文件呢

我当前的.htaccess文件如下所示:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^https?://mysite.com/page/ [NC]
RewriteRule ^ - [L,F]
并允许从/page/上的iframe访问的人访问“受限”区域中的index.php文件。但是,当我遇到403错误时,如何允许访问该目录中的所有文件呢