php - .htaccess 文件修改

标签 php .htaccess

我有一个 .htaccess 文件,它安排所有请求都通过 index.php。 现在我想为 rss.php 做个异常(exception)。直接通过 rss.php。 我该怎么做?

现在是这样的:

RewriteEngine on
RewriteBase /
RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php

谢谢。

最佳答案

把它放在最后一行之前。

RewriteCond %{REQUEST_URI} !^/rss\.php$

关于php - .htaccess 文件修改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/816558/

相关文章:

javascript - ajax调用可能有问题

java - Angular JS , Tomcat Apache , # Urls

.htaccess - 在动态 .htaccess 处添加尾部斜杠

php - 目录结构 : Separating the application from uploaded files

docker - SEO URL 在带有 Docker 的 OpenCart 2.3 中给出 404 错误

regex - 将旧域重定向到新域的主页

php - mysql查询中使用`和不使用`有什么区别

php - 如何在 Yii 中设置表前缀

php - 使用 session 变量获取当前用户 ID

php - 亚马逊预签名网址,只允许某些文件类型?