谁知道这个伪静态规则怎么写?
伪静态地址是
https://www.91084.com/city_beijing/
但是
https://www.91084.com/city_beijing 就是打不开了
但是我写了2个伪静态规则都可以打开了
下面是规则
RewriteRule ^city_([a-z0-9_\-]+)/$ areas/index\.php?area=$1 [L] //这个是结尾带/
RewriteRule ^city_([a-z0-9_\-]+)$ areas/index\.php?area=$1 [L] //这个是结尾不带/
问题是
如何写个规则 让他
https://www.91084.com/city_beijing访问就跳到 https://www.91084.com/city_beijing/ 这里呢?
https://www.91084.com/city_beijing/
但是
https://www.91084.com/city_beijing 就是打不开了
但是我写了2个伪静态规则都可以打开了
下面是规则
RewriteRule ^city_([a-z0-9_\-]+)/$ areas/index\.php?area=$1 [L] //这个是结尾带/
RewriteRule ^city_([a-z0-9_\-]+)$ areas/index\.php?area=$1 [L] //这个是结尾不带/
问题是
如何写个规则 让他
https://www.91084.com/city_beijing访问就跳到 https://www.91084.com/city_beijing/ 这里呢?