Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What do I have to do to replace

& = [and]
? = [vop]
. = [too]
= = [rav]

from URI using mod_rewrite?

For example I need to redirect:

"" to "[vop]boo[rav]1"
"" to "[vop]puhovoi[rav]3"
"" to "[too]asp[vop]model[rav]3[and]big[rav]43"

etc., also directories, query parametres and so on may be absolutely different. Thanks for your help!

share|improve this question
up vote 1 down vote accepted

This question was answered in stackoverflow. You can write a similar RewriteRule. The problem is, if you don't know exact order of the replacing character, you'll gona be stuckt. IMHO their is no way to do search and replace with mod_rewrite.

share|improve this answer
yeah it's solved with redirecting to php script and parsing query string, but thanks anyway – purple Aug 20 '10 at 23:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.