要使用僞靜態必須先設置重寫模塊,在前面的linux notes中有,windows配置:linkphp
正則表達式……痛,善用regex在線轉換測試功能吧。http://tool.chinaz.com/regex
apache
源:localhost/simple/home/test/aaawindows
轉換:localhost/simple/index.php?c=home&m=test¶m=aaa測試
index.php同目錄下新建.htaccessspa
RewriteEngine on RewriteCond $1 !^(index\.php) RewriteRule ^index\?c=([a-z]{1,})&m=([a-z]{1,})$ index.php?c=$1&m=$2
(.*)能夠搭配任何……