这是我的htaccess规则我想为什么所有页面都会转到仪表板意味着dashboard.php所有页面都显示了dashboard.php
请帮我解决这个问题。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ErrorDocument 400 /error-400.php
ErrorDocument 401 /error-401.php
ErrorDocument 403 /error-403.php
ErrorDocument 404 /error-404.php
ErrorDocument 500 /error-500.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)$ dashboard.php [L]
RewriteRule ^([a-zA-Z0-9_-]+)/$ dashboard.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)$ logout.php [L]
RewriteRule ^([a-zA-Z0-9_-]+)/$ logout.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)$ category.php?pCategory=$1 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/$ category.php?pCategory=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ subcategory.php?pCategory=$1&cCategory=$2 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$ subcategory.php?pCategory=$1&cCategory=$2 [L]
提前thanx