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

I have a problem with WordPress links to media files.

It is currently pointing to (which is wrong/won't work/nothing loads):

The correct URL is to retrieve the image is (works/image is loaded into browser):

So, how do I get Cherokee to redirect everything from: to:

... and note that the "" corresponds to the "5" in the correct URL path.


I need either of these solutions:

How do I configure Cherokee Web Server to correctly redirect (rewrite) to the correct URL? (In Cherokee, I'm using Virtual Server, so I can statically map the domain name to the "5" in the correct URL.)


How do I set the settings within WordPress to correct this situation?


share|improve this question
up vote 0 down vote accepted

Yup, I have resolved this problem by rewriting "^/files/(.*)" to "$1" (Cherokee redirection).

share|improve this answer

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.