我有一个 .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/