通过.htaccess规则
将+符号替换为URL中的连字符网址
http://domain.com/sitename/Chandigarh/Indian+Restaurants-in-Sector+28
到
http://domain.com/sitename/Chandigarh/Indian-Restaurants-in-Sector-28
我想将+符号更改为 - 符号。
答案 0 :(得分:1)
对此答案的修改应该有所帮助:
Search and replace in apache htaccess a RewriteRule
RewriteRule ^([^+]*)\+(.*) $1-$2 [N,R=301]