要使用伪静态必须先设置重写模块,在前面的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
(.*)能够搭配任何……