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

Is it possible to redirect a folder and subfolder to different locations within Apache?

For examples, redirect

/images to


/images/uploads/ to

share|improve this question
up vote 3 down vote accepted

You want to use either a redirect or a rewrite. Have a look at the mod_rewrite docs.

Redirect is easiest. RedirectMatch will let you use a regex to be a bit more flexible:

RedirectMatch permanent /images(/uploads/)?$1
share|improve this answer
you are awesome with good solution – Mughil Dec 31 '11 at 18:36
Thank you, James – DaedBaet Jan 1 '12 at 1:13

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.