Php 重写规则标志和静态字重定向问题
当我访问它时,它应该被重定向到account.phpPhp 重写规则标志和静态字重定向问题,php,.htaccess,Php,.htaccess,当我访问它时,它应该被重定向到account.php 如果我访问它,应该在store.php上重定向它限制现有文件和目录的上一条规则: RewriteEngine on RewriteRule account$ account.php [Nc] RewriteRule (.+)$ store.php [Nc] Options -MultiViews RewriteEngine on RewriteRule account/?$ account.php [NC,L]
如果我访问它,应该在store.php上重定向它限制现有文件和目录的上一条规则:
RewriteEngine on
RewriteRule account$ account.php [Nc]
RewriteRule (.+)$ store.php [Nc]
Options -MultiViews
RewriteEngine on
RewriteRule account/?$ account.php [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . store.php [L]