0

I want to change the URL From

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

to

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

How do i replace all the dashes using rewrite?

RewriteRule ^shows/(.*)/$       /pics/$1 [L,NC]
Houari
  • 5,326
  • 3
  • 31
  • 54
Fais
  • 1
  • Is `car-show-pictures-set` text that can vary in the number of words it contains? – Kenneth K. Apr 06 '13 at 17:35
  • umm dunno what language but there should be a replaceAll function no? whichc takes in a certain char? – Lpc_dark Apr 15 '13 at 00:17
  • This question has some good answers about this topic: http://stackoverflow.com/questions/2105009/mod-rewrite-replace-all-underscore-with-hyphen – Sam Wilson Oct 28 '15 at 05:11

0 Answers0