x171306523c 发表于 2012-7-25 13:24:40

url重写规则 .htaccess如何编写

现有URL:http://localhost/index.php/s/?wd=XXXXXXXX
使用规则
RewriteEngine on
RewriteCond $1 !^(index\.php|public|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1
可得到http://localhost/s/?wd=XXXXXXXX
但是我想要的URL是http://localhost/s/XXXXXXXX

这个规则得怎么写?
请高人指点一二

x171306523c 发表于 2012-7-26 09:05:25

如果不做URL重写
那么使用js如何将?wd=去掉
页: [1]
查看完整版本: url重写规则 .htaccess如何编写