答案 0 :(得分:1)
将此代码放入DOCUMENT_ROOT/.htaccess
文件中:
RewriteEngine On
RewriteBase /uppit/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?id=$1 [L,QSA]
答案 1 :(得分:0)
RewriteEngine On # Turn on the rewriting engine
RewriteBase /
RewriteRule ^/?$ index.php?id=$1 [NC,L]