Pseudo-static setup of Nginx and Apache
Apache URL Rewrite converted to NGINX URL Rewrite tool http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ First of all, Apache’s Rewrite rules are not very different, but Nginx’s Rewrite rules are much simpler and more flexible than Apache’s Nginx can use if for conditional matching, and the syntax rules are similar to C if ($http_user_agent ~ MSIE) { rewrite ^(.*)$ /msie/$1 break; } For official documents, please click here Flags of Rewrite Flags can be any of the following: * last – completes processing of rewrite directives, after which searches for corresponding URI and location * break – completes processing of rewrite directives *redirect – returns temporary redirect with code 302; it is used if the substituting line begins with http:// * permanent – returns permanent redirect with code 301 last- After completing the rewrite instruction, search for the corresponding URI and location. It is equivalent to the [L] mark in Apache, which means that the rewrite is completed and no longer matches the following rules. break – Abort Rewirte, do not continue matching. redirect – Returns HTTP status 302 for a Temporary Redirect. permanent- Returns HTTP status 301 for Permanent Redirect. Redirection rules for ZEND Framework: Case 1: Redirect all to /index.php rewrite ^/(.*) /index.php?$1&;…