Nginx rewrite config for ArticleLive

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;
}

Comments 1

  1. Paul wrote:

    Hi there. I posted this question at ruby-forum with no reply. http://www.ruby-forum.com/topic/191979#new

    I don’t think I could figure this out on my own if I had a million years. Your help would be very appreciated.

    Cheers!

    Posted 24 Jul 2009 at 11:45 pm

Post a Comment

Your email is never published nor shared. Required fields are marked *