0

/index.php?user=username TO /username

AND

/index.php?page=settings TO /settings

Please help me, suggest solutions for .htaccess or PHP, would be very grateful!

4

1 回答 1

0

将 .htaccess 代码更改为

RewriteBase /

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /(.*)$ index.php?user=$1
RewriteRule /(.*)$ index.php?page=$1
于 2013-12-08T15:34:34.670 回答