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
这个规则得怎么写?
请高人指点一二
如果不做URL重写
那么使用js如何将?wd=去掉
页:
[1]