redirect problems

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
As a long time windows, asp.net forms developer , nopCommerce is my first contact with MVC.
Part of the project is that I need to redirect some users visiting the site to a different site. So I googled  and found some things that could help me accomplish this.

What I found was this:

1)http://msmvps.com/blogs/shahed/archive/2009/05/17/asp-net-mvc-tips-301-redirect-non-www-versions-of-url-to-www.aspx

and

2) http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx

The first one about redirecting in MVC the second about showing all routes. Their implementation is actually very very similar. In the application_start they both inject some stuff in the routing tables, using instances of class IHttpHandler,
the debug (1) version is straight instance of it, the second (2) a MvcHandler (which inherits from IHttpHandler).
But the MvcHandler does not work, if I change the debug version to use a mvchandler instead of a ihttphandler it stops working. Any idea why?
Tnx
12 years ago
Just to clarify. The site should only be accessible to US customers. I have the tool to check the IP address , I just dont know how redirect people when they are not from the US in nopCommerce.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.