重写规则与其他文件冲突


.htaccess Rewrite rule conflict with other file

我已经制作了一个。htaccess文件,但问题是与其他文件

冲突。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^f9/([^/'.]+)?$ footer_arts.php?page=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^f10/([^/'.]+)?$     footer_bus.php?page=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^f11/([^/'.]+)?$     footer_cely.php?page=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^f12/([^/'.]+)?$     footer_com.php?page=$1 [QSA,L]
RewriteRule ^f13/([0-9]+)$     footer_edu.php?page=$1

当我打开www.example.com/f9/1时,它完全打开,但当我打开www.example.com/f10/1或www.example.com/f11/1时,它显示另一个页面,这是我的htaccess文件,就像f13/1,我怎么能防止这种冲突并打开正确的页面

试试这样写代码。

RewriteEngine On
#if the request is a real file or directory, do nothing otherwise process one of the rules below.
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^f9/([^/]+)/?$ footer_arts.php?page=$1 [QSA,L]
RewriteRule ^f10/([^/]+)/?$ footer_bus.php?page=$1 [QSA,L]
RewriteRule ^f11/([^/]+)/?$ footer_cely.php?page=$1 [QSA,L]
RewriteRule ^f12/([^/]+)/?$ footer_com.php?page=$1 [QSA,L]
RewriteRule ^f13/([0-9]+)/?$ footer_edu.php?page=$1 [QSA,L]