Php 我如何不包括某些URL';他在重写吗?

Php 我如何不包括某些URL';他在重写吗?,php,.htaccess,Php,.htaccess,到目前为止,我的.htaccess是这样的: Options +FollowSymLinks RewriteEngine On RewriteBase /school RewriteRule ^([a-zA-Z0-9]+)/$ index.php?page=$1 RewriteRule ^([a-zA-Z0-9]+)$ index.php?page=$1 ErrorDocument 404 /school/index.php?page=404 但是,我需要像普通url一样将mysite.co

到目前为止,我的.htaccess是这样的:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /school
RewriteRule ^([a-zA-Z0-9]+)/$ index.php?page=$1
RewriteRule ^([a-zA-Z0-9]+)$ index.php?page=$1

ErrorDocument 404 /school/index.php?page=404
但是,我需要像普通url一样将
mysite.com/school/admin
传递到子目录。我在谷歌上搜索过,但没能找到它。有什么帮助吗?

试试这样的方法

RewriteRule ^(admin)($|/) - [L]
在其他重写规则之前,因为这将在该行结束重写过程