title: Converting .htaccess to nginx (mod_rewrite)
body: <p>I've got the following .htaccess file for my apache:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    Options +FollowSymlinks    
  # Options +SymLinksIfOwnerMatch
    RewriteEngine On
    RewriteBase /
    RewriteRule ^$          index.php       [L]
    RewriteCond %{REQUEST_FILENAME}         !-f
    RewriteCond %{REQUEST_FILENAME}         !-d
    RewriteRule (.*)        index.php?page=$1  [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Suddenly I had to change my webserver to nginx and I don't know why, but the mod rewrite is not working.</p>
  
  <p>I used an online 'converter' to convert it, so I've got the following:</p>
  
  <pre><code>location / {
    rewrite ^/$ /         index.php       break;
    if ($request_filename ~         !-f){
      rewrite ^(.*)$ /       index.php?page=$1   break;
    }
  }
  </code></pre>
  
  <p>Could you help me what's wrong?</p>
  
  <p>Thanks in advance,
  Marcell</p>