.htaccess使浏览器打不开解决思路
程序员文章站
2022-04-26 17:18:47
...
.htaccess使浏览器打不开
一页面很正常,可是当我在根目录下放入.htaccess,该页面再也打不开了,
.htaccess的内容:
# Helicon ISAPI_Rewrite configuration file# Version 3.1.0.66
RewriteEngine On
RewriteRule ^index.html$ index.php
RewriteRule ^index_ok.html$ index_ok.php:
页面显示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unableto complete your request.
Please contact the server administrator, [email protected] and inform them of thetime the error occurred, and anything you might have done that may have causedthe error.
More information about this error may be available in the server errorlog.
------解决方案--------------------
#有没有加这个?
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ index.php
RewriteRule ^index_ok.html$ index_ok.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
一页面很正常,可是当我在根目录下放入.htaccess,该页面再也打不开了,
.htaccess的内容:
# Helicon ISAPI_Rewrite configuration file# Version 3.1.0.66
RewriteEngine On
RewriteRule ^index.html$ index.php
RewriteRule ^index_ok.html$ index_ok.php:
页面显示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unableto complete your request.
Please contact the server administrator, [email protected] and inform them of thetime the error occurred, and anything you might have done that may have causedthe error.
More information about this error may be available in the server errorlog.
------解决方案--------------------
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ index.php
RewriteRule ^index_ok.html$ index_ok.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
相关文章
相关视频
专题推荐
-
独孤九贱-php全栈开发教程
全栈 170W+
主讲:Peter-Zhu 轻松幽默、简短易学,非常适合PHP学习入门
-
玉女心经-web前端开发教程
入门 80W+
主讲:灭绝师太 由浅入深、明快简洁,非常适合前端学习入门
-
天龙八部-实战开发教程
实战 120W+
主讲:西门大官人 思路清晰、严谨规范,适合有一定web编程基础学习
上一篇: php安全编程—sql注入攻击
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论