Nginx rewrite rules for ArticleLive: if (!-e $request_filename) { rewrite ^/categories(.*)$ /categories.php?$1 last; rewrite ^/articles(.*)$ /articles.php?$1 last; rewrite ^/pages(.*)$ /pages.php?$1 last; rewrite ^/blogs(.*)$ /blogs.php?$1 last; rewrite ^/news(.*)$ /news.php?$1 last; rewrite ^/authors(.*)$ /authors.php?$1 last; rewrite ^/search(.*)$ /search.php?$1 last; rewrite ^/articlerss(.*)$ /articlerss.php?$1 last; rewrite ^/contact(.*)$ /contact.php?$1 last; rewrite ^/blogrss(.*)$ /blogrss.php?$1 last; rewrite ^/newsrss(.*)$ /newsrss.php?$1 last; break; }
Aleksandar Savic
You are currently viewing the monthly archives for July 2007
Monthly Archives July 2007
Running XtraUpload Under Nginx
Nginx rewrite rules for XtraUpload: if (!-e $request_filename) { # New Rewrite Rules for total site SEO rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&$4=$5&$6=$7&$8=$9&$10=$11 last; rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&$4=$5&$6=$7&$8=$9 last; rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&$4=$5$6=$7& last; rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&$4=$5 last; rewrite ^/(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3 last; # More New Rewrite Rules for total site SEO, with index.htm pagess at the end rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/$ /$1.php?$2=$3&$4=$5&$6=$7&$8=$9&$10=$11 [...]