尝试在url重写中替换短划线

时间:2013-04-06 16:17:43

标签: regex url-rewriting

我想更改网址

example.com/shows/2013-car-show-pictures-set

example.com/pics/2013+car+show+pictures+set

如何使用重写替换所有短划线?

RewriteRule ^shows/(.*)/$       /pics/$1 [L,NC]

0 个答案:

没有答案