.htaccess: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^([0-9]+)$ index\.php\?para=$1 [L] 报400错误 Bad RequestYour browser sent a request that this server could not understand.
RewriteRule ^([0-9]+)$ index\.php\?para=$1 [L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^([0-9]+)$ index\.php\?para=$1 [L]
报400错误
Bad RequestYour browser sent a request that this server could not understand.
这样直接进localhost界面了
RewriteRule ^([0-9]+)$ http\:\//\localhost\/\test\/\a\/\index\.php\?para=$1
这样写是可以的
但写全路径也太那个了
报400错误
Bad RequestYour browser sent a request that this server could not understand.
试一下。这个我没有试哦。出了啥错,记得告诉我一下啊。