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
如果使用.htaccess,我的主机错误为500_.htaccess - Fatal编程技术网

如果使用.htaccess,我的主机错误为500

如果使用.htaccess,我的主机错误为500,.htaccess,.htaccess,如果使用.htaccess,我的主机错误为500 这是我的.htaccess文件 RewriteEngine On AllowOverride All RewriteBase / RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301] RewriteRul

如果使用.htaccess,我的主机错误为500 这是我的.htaccess文件

RewriteEngine On AllowOverride All RewriteBase / RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301] RewriteRule ^developer.html$ developer.php [QSA,L] RewriteRule ^multishrink.html$ multishrink.php [QSA,L] RewriteRule ^stats.html$ public-stats.php [QSA,L] RewriteRule ^feed.rss feed.php [QSA,L] RewriteRule ^([^/]+)\.qrcode$ qrcode.php?id=$1 [QSA,L] RewriteRule ^api.php$ API/simple.php [QSA,L] RewriteRule ^API/write/(get|post)$ API/write.php?method=$1 [QSA,L] RewriteRule ^API/read/(get|post)$ API/read.php?method=$1 [QSA,L] RewriteRule ^([^/]+)/stats$ stats.php?id=$1 [QSA,L] RewriteRule ^([^/]+)/unlock$ unlock.php?id=$1 [QSA,L] RewriteRule ^privacy.html$ privacy.php [QSA,L] RewriteRule ^disclaimer.html$ disclaimer.php [QSA,L] RewriteRule ^contact.html$ contact.php [QSA,L] # If path is not a directory or file then apply RewriteRule RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^([0-9a-zA-Z-]{1,60})$ go.php?id=$1 [QSA,L]Options -Indexes 重新启动发动机 允许超越所有 重写基/ 重写条件%{HTTPS}关闭 重写cond%{HTTP:X-Forwarded-Proto}!https 重写规则^(.*)$https://%{HTTP_HOST}/$1[L,R=301] 重写规则^developer.html$developer.php[QSA,L] 重写规则^multishrink.html$multishrink.php[QSA,L] 重写规则^stats.html$public-stats.php[QSA,L] 重写规则^feed.rss feed.php[QSA,L] 重写规则^([^/]+)\.qrcode$qrcode.php?id=$1[QSA,L] 重写规则^api.php$api/simple.php[QSA,L] 重写规则^API/write/(get | post)$API/write.php?方法=$1[QSA,L] 重写规则^API/read/(get | post)$API/read.php?方法=$1[QSA,L] 重写规则^([^/]+)/stats$stats.php?id=$1[QSA,L] 重写规则^([^/]+)/unlock$unlock.php?id=$1[QSA,L] 重写规则^privacy.html$privacy.php[QSA,L] 重写规则^disclaimer.html$disclaimer.php[QSA,L] 重写规则^contact.html$contact.php[QSA,L] #如果路径不是目录或文件,则应用重写规则 重写cond%{REQUEST_FILENAME}-F 重写cond%{REQUEST_FILENAME}-D 重写cond%{REQUEST_FILENAME}-L 重写规则^([0-9a-zA-Z-]{1,60})$go.php?id=$1[QSA,L]选项-索引
如何修复这一问题

删除这一行
AllowOverride All
。仍然与500错误相同我认为问题出在这一行
RewriteRule^([0-9a-zA-Z-]{1,60})$go.php?id=$1[QSA,L]选项-索引
如果我删除这一行,
Firefox检测到服务器正在以一种永远不会完成的方式重定向对此地址的请求。