nginx redirect with regexp
- by nginxnoob
I had an old site that was built with ASP, the homepage url looked like this "www.hifimaven.com/index.asp". But now the new site is built on top of RubyOnRails using nginx. and the new url to the homepage "www.hifimaven.com".
How can I tell nginx to redirect to the new homepage url if the user types the old url instead of showing a 404 page.