robert-tailor.co
-
6/18/2012 12:13:55 AM
IIS URL Rewrite and Kentico License Keys
Hi,
I'm not sure if this is the right place to ask this question (if it isn't, please feel free to move it).
I have a Kentico website which is accessible from 3 domains. 2 of these domains are region specific, so I want them to redirect the user to the relevant region specific pages in our main Kentico site. For example:
- www.mysite.com is the main site. - www.mysite.com.au redirects users to www.mysite.com/au - www.mysite.co.nz redirects users to www.mysite.com/nz
There are 2 ways I can achieve this:
1. Set up additional websites in IIS with bindings that listen on those specific region specific domains, and then use HTTP Redirect to redirect the user to the region specific page on the main Kentico site. 2. Set up a URL Rewrite rule using the IIS URL Rewrite Module on the main Kentico website and set it so that any requests for a region specific domain redirect users to the desired region specific page on the main site.
I've tried both options.
Option (1) works, but requires more maintenance - there are multiple websites that all redirect to the same site.
Option (2) throws a licensing error that the requested domain (e.g. www.mysite.co.nz) is not licensed for the main domain (i.e. www.mysite.com/nz). I'm guessing this is because the original request occurs in the same application pool.
Question: Should the licensing issue in option (2) be happening when region specific domains redirect to the main site using URL Rewrite? Although they are separate domains, they redirect (changing the URL in the process) to the main site which is licensed.
I would prefer to use option (2) because it is easier to maintain.
What is the best way to handle this?
I am using Kentico v6.0.
Thanks!
|