【发布时间】:2012-06-12 19:14:00
【问题描述】:
我正在使用已经在 .htaccess 中具有这些重写条件和规则的普通论坛:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
我现在想要添加一些重写规则,仅当我在页面 /vanilla/index.php?p=/categories/general 上时才要求身份验证(需要有效用户),即只是查询字符串“p=/类别/一般”
感谢您的帮助!
【问题讨论】:
标签: apache .htaccess query-string