Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/271.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.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
选项索引如下Symlinks包括test/index.php.403_Php_.htaccess_Perch - Fatal编程技术网

选项索引如下Symlinks包括test/index.php.403

选项索引如下Symlinks包括test/index.php.403,php,.htaccess,perch,Php,.htaccess,Perch,在我的整个网站中,我都使用html,但我想合并一个名为perch的.php cms。在尝试运行兼容性测试时,我得到了一个禁止的403。当我停用.htace时,它工作了。经过一段时间的测试,我把范围缩小到了这个 Options Indexes FollowSymLinks Includes 当我对它进行评论时,它是有效的,但由于不知道htaccess是如何完全工作的,我不知道这是停用什么。我该怎么做才能使它仍然处于激活状态,并使我的站点允许访问.php文件。下面是完整的htaccess代码(特定

在我的整个网站中,我都使用html,但我想合并一个名为perch的.php cms。在尝试运行兼容性测试时,我得到了一个禁止的403。当我停用.htace时,它工作了。经过一段时间的测试,我把范围缩小到了这个

Options Indexes FollowSymLinks Includes
当我对它进行评论时,它是有效的,但由于不知道htaccess是如何完全工作的,我不知道这是停用什么。我该怎么做才能使它仍然处于激活状态,并使我的站点允许访问.php文件。下面是完整的htaccess代码(特定于SAN页面的重定向)

RewriteOptions inherit

RewriteEngine on
AddType text/html .shtml
AddHandler server-parsed .shtml
# Options Indexes FollowSymLinks Includes <-----
AddHandler server-parsed .html .htm

<IfModule mod_expires.c>
  ExpiresActive on

# Your document html
  ExpiresByType text/html "access plus 0 seconds"

# Media: images, video, audio
  ExpiresByType audio/ogg "access plus 2 weeks"
  ExpiresByType image/gif "access plus 2 weeks"
  ExpiresByType image/jpeg "access plus 2 weeks"
  ExpiresByType image/png "access plus 2 weeks"
  ExpiresByType video/mp4 "access plus 2 weeks"
  ExpiresByType video/ogg "access plus 2 weeks"
  ExpiresByType video/webm "access plus 2 weeks"

# CSS and JavaScript
  ExpiresByType application/javascript "access plus 1 year"
  ExpiresByType text/css "access plus 0 seconds"
</IfModule>

# compress text, HTML, JavaScript, CSS, and XML
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/js

AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
重写选项继承
重新启动发动机
AddType text/html.shtml
AddHandler服务器已解析。shtml
#选项索引和以下符号链接包括