monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Help with .htaccess rules


From: Martin Pala
Subject: Re: [monit] Help with .htaccess rules
Date: Tue, 18 Nov 2008 07:41:17 +0100

Hi,

this is nginx specific question (not related to monit) - try to ask the nginx mailing list.

Thanks,
Martin


On Nov 17, 2008, at 10:47 PM, Joe Shang wrote:

May seem like cheating posting this on here, but kinda stuck on this,
as we are helping move alot of shared customers to nginx.

Stuck on these:

RewriteRule ^(.*)-p-(.*).html$
index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html$
index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html$
index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$
index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$
index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING}
[L]
RewriteRule ^(.*)-pri-([0-9]+).html$
index\.php?main_page=product_reviews_info&products_id=$2&% {QUERY_STRING}
[L]

How would these look in nginx?

Is it like:

rewrite ^/(.*)-p-(.*).html$
index\.php?main_page=product_info&products_id=$2&% last;
rewrite ^/(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&% last;
rewrite ^/(.*)-m-([0-9]+).html$
index\.php?main_page=index&manufacturers_id=$2&% last;
rewrite ^/(.*)-pi-([0-9]+).html$ index\.php? main_page=popup_image&pID=$2&% last;
rewrite ^/(.*)-pr-([0-9]+).html$
index\.php?main_page=product_reviews&products_id=$2&% last;

?

May seem stupid of me, but just not sure how would "{QUERY_STRING}"
would be placed here on nginx from .htaccess, nginx doesn't even
recognize it.

Thanks!

Joe


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

[Prev in Thread] Current Thread [Next in Thread]