Having trouble understand how rewrite works

victor noagbodjivictor at gmail.com
Wed Oct 19 16:51:07 UTC 2011


Thanks again. I understand the map solution. Here's another issue, you
see, the links below all map to the index page (there are other pages
too, that have those PageID, ParentPageID, etc.. parameters).

/index.cfm?PageID=1
/index.cfm?resetCache=yes
/index.cfm?PageID=1&ParentPageID=1&NavID=1
/index.cfm?PageID=22&ParentPageID=1&NavID=22
/index.cfm?PageID=14&ParentPageID=38&NavID=38&ReferringPage=1

all map to / (index)

/index.cfm?PageID=35&ParentPageID=26&NavID=26
/index.cfm?PageID=35&ParentPageID=26&NavID=35&ProductID=8&PageText=off
/index.cfm?PageID=35&ParentPageID=26&NavID=35&ProductID=9&PageText=off
/index.cfm?PageID=35&ParentPageID=26&NavID=35&ProductID=10&PageText=off
/index.cfm?PageID=35&ParentPageID=26&NavID=35&ProductID=15&PageText=off
/index.cfm?PageID=35&ParentPageID=26&NavID=35&ProductID=16&PageText=off
/index.cfm?PageID=35&ParentPageID=26&NavID=35&ProductID=11&PageText=off

and these for example would map to another unique page.

The parameters specify the actual page that must be mapped to. And
since I now know I can't use regex on query parameters, is there a way
to handle this situation?

Thanks

On Wed, Oct 19, 2011 at 12:40 PM, locojohn <nginx-forum at nginx.us> wrote:
> Sorry, index\.cfm, of course, not index\.php.
>
> Andrejs
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,216917,216923#msg-216923
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
Victor Noagbodji
http://www.victorsreviews.com



More information about the nginx mailing list