title: nginx Wordpress URL rewrite
body: <p>I've just installed nginx 1.0.8 and php-fpm and for the last 30 minutes I'm trying to rewrite the URL for Wordpress.</p>
  
  <p>Here is what the Wordpress URL should look like:
  <a href="http://localhost/website/blog/2011/10/sample-post/" rel="nofollow">http://localhost/website/blog/2011/10/sample-post/</a></p>
  
  <p>I've looked at this tutorial: <a href="http://wiki.nginx.org/WordPress" rel="nofollow">http://wiki.nginx.org/WordPress</a> + many other on the web but every time I receive an 404 error (sometimes 403).</p>
  
  <p>Here is what I did in my configuration file:</p>
  
  <pre><code>    location /website/blog {
              try_files $uri $uri/ /website/blog/index.php;
      }
  
      location ~ \.php$ {
          root           html;
          fastcgi_pass   127.0.0.1:9000;
          fastcgi_index  index.php;
          fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
          fastcgi_intercept_errors on;
          fastcgi_split_path_info ^(/website/blog)(/.*)$;
          include        fastcgi_params;
          error_page  404 /404.html;
      }
  </code></pre>
  
  <p>With this configuration I'm receiving "403 forbidden" status.</p>
  
  <p>What am I missing?</p>