title: Nginx rewrite rules for SEO friendly URL structure - WordPress and another Web application
body: <p>I have got WordPress installed on my root example.com/ Website. </p>
  
  <p>Also I have another Web application that on example.com/my-app/ which has got ugly links like example.com/my-app/file.php?arg=value to access.</p>
  
  <p>How can I make my-app SEO friendly URI structure working as example below?:</p>
  
  <pre><code>example.com/my-app/file.php?arg=value
  to
  example.com/my-app/value/
  </code></pre>
  
  <p>Currently, if I access to example.com/my-app/value/ it redirects me to my WordPress post which contains some characters of the /value/. Why? Is there anyway to get this working?</p>
  
  <p>My Nginx directives for domain are listed below:</p>
  
  <pre><code>location / {
    try_files $uri $uri/ /index.php?$args;
    fastcgi_read_timeout 300;
  }
  
  location ~ \.php$ {
      include /etc/nginx/fastcgi_params;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
  </code></pre>
  
  <p>Any ideas? Should I use Ajax navigation, with switch cases? What about HTML5 pushState() API? Any working examples?</p>
  
  <p>Thanks for help!</p>