Amazon's default access protocol is HTTPS now. All HTTP access redirected to HTTPS.
Add support two short urls, a.co and amzn.to. You can get the first one from the share button of a product page, and the latter one is generated by bit.ly.
Modify two regexes from www\.amazon\.com/ to (?:www\.)?amazon\.com/ and from amzn\.com/([^/]+) to amzn\.com/(?:[gd]p/)?([^/]+) to support other url variations.
Amazon's default access protocol is HTTPS now. All HTTP access redirected to HTTPS.
Add support two short urls,
a.co
andamzn.to
. You can get the first one from the share button of a product page, and the latter one is generated bybit.ly
.Modify two regexes from
www\.amazon\.com/
to(?:www\.)?amazon\.com/
and fromamzn\.com/([^/]+)
toamzn\.com/(?:[gd]p/)?([^/]+)
to support other url variations.