2014-01-28 99 views

回答

0

它添加到htaccess文件你的文檔根:

RewriteEngine On 

RewriteCond %{THE_REQUEST} \ /+\?page=([0-9]+) 
RewriteRule^/%1? [L,R] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^([0-9]+)$ /?page=$1 [L,QSA] 
[URL重寫htaccess以及PHP的