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 server running nginx + php5-fpm with a wordpress installation. My website is served on and I would like to configure to point my site contributors to How do I configure my server{} block to do this?

share|improve this question
up vote 1 down vote accepted

I believe something like this should work:

server {
    rewrite ^(.*) permanent;
share|improve this answer
edit: removing the completely false statement I made in this comment. This worked. – Wade Tandy Nov 15 '10 at 6:07
There's no point in a capture you're not using. rewrite ^ http... would work just fine – Martin Fjordvald Nov 15 '10 at 8:16

Try this:

    location / {
        root   /home/kiputih0/public_html;
        index  index.php;
        try_files $uri $uri/ /index.php?q=$uri&$args;

In my permalinks I've custom rules: /%year%/%monthnum%/%day%/%postname%.html

And when I browse to some article it will be:



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.