问题描述
我的.htaccess文件中有这行
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)$ /account.PHP?PAGE=$1 [L]
RewriteRule ^([^/]*)$ /pages.PHP?PAGE=$1 [L]
问题出在辅助规则上,所以当我要访问pages.PHP时,它会跳转到account.PHP
我该怎么办?
解决方法
您可以尝试以下方法:
WITH cte AS (
SELECT *,COUNT(Y >= 3) OVER (PARTITION BY ID) cnt
FROM table 1
)
SELECT ID,Y,date
FROM cte
WHERE cnt > 0;