关于rewrite的问题

「已注销」 2006-09-02 04:33:34
我想把index.html重写成index.php

RewriteEngine On
RewriteRule /index[\.]php$ /index.html [L]

发现在RewriteEngine On打开的时候访问任何页面都是403拒绝访问,几十没有RewriteRule 也是403````
找过配置文件没有存在任何的RewriteRule 。
...全文
185 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2006-09-02
  • 打赏
  • 举报
回复
(index[\.]php)$
这个正则我在php里面用ereg试验过是可以的呀```
xiaoyaowp 2006-09-02
  • 打赏
  • 举报
回复
...
「已注销」 2006-09-02
  • 打赏
  • 举报
回复
RewriteEngine On
RewriteBase /
RewriteRule (index[\.]php)$ index.html [L]
「已注销」 2006-09-02
  • 打赏
  • 举报
回复
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧