Rewrite except for single uri
ed.stow at gmail.com
Mon Aug 3 08:45:05 MSD 2009
I have a small site that has a buy page with ssl :
I want all requests to other pages to be re-directed to http such as
https://shop.abc.tld/index.html --> http://abc.tld/index.html
https://shop.abc.tld/buy.html passes through unchanged
I do not want to have explicitly list the other pages in the rewrite
as shown for obvious reasons.
The list has been edited down for brevity.
Any better suggestions.
#Must be a better way to rewrite
rewrite ^/(index|about|contact|delivery|refund|privacy|credits)\.html$ http://abc.tld/$1.html
More information about the nginx