/index.php?user=username
致/username
和
/index.php?page=settings
致/settings
请帮帮我,建议.htaccess或PHP的解决方案,非常感谢!
答案 0 :(得分:0)
将.htaccess代码更改为
RewriteBase /
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /(.*)$ index.php?user=$1
RewriteRule /(.*)$ index.php?page=$1