Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 am trying to set up a site which uses code cloned from

My site is at

You'll see that each interview post on the site, uses the following URL syntax

The creator of the original site uses Nginx and has offered the following for how he achieves this syntax

I've set up wildcard DNS and a ServerAlias of *, but I'm struggling to understand (and find examples) how to port the Nginx rules to modrewrite rules and would appreciate some help.

Thank you.

share|improve this question
up vote 1 down vote accepted

Something like:

RewriteCond %{HTTP_HOST} ^([0-9a-z+.-]+)$ [NC] RewriteRule (.*) /interviews/%1.html [L]

should do the trick.

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.