Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > IIS URL Rewrite and Kentico License Keys View modes: 
User avatar
Member
Member
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!

User avatar
Member
Member
tspring-allegra - 6/19/2012 5:18:28 AM
   
RE:IIS URL Rewrite and Kentico License Keys
Hi

Do you have access to the admin account where the domains are registered?

There should be some option for Web Forwarding in there that would be a lot easier to setup a redirect than messing around with IIS or the CMS.

Cheers,
Tim

User avatar
Member
Member
robert-tailor.co - 6/19/2012 11:04:52 PM
   
RE:IIS URL Rewrite and Kentico License Keys
Hi,

Thanks for your suggestion.

I'm afraid I don't have access to the domain registration system used by my client.

Even if I did, I'm not sure it is possible to redirect even a CName URL to a subdirectory of a domain. I believe they can only be forward to IP addresses and/or domains - correct?

Also, I think it would take a few hours for DNS records to update, so not sure how practical that would be.

Rob.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/20/2012 1:03:50 PM
   
RE:IIS URL Rewrite and Kentico License Keys
Hi,

For the option 2 you just need to list the domains as a domain aliases for given site and have license keys for given aliases. Since those are just language specific aliases for one web site, you can get the keys for free via the client portal.

Best regards,
Juraj Ondrus

User avatar
Member
Member
robert-tailor.co - 6/20/2012 5:58:24 PM
   
RE:IIS URL Rewrite and Kentico License Keys
Great, thanks!

I've applied for a few aliases, so I'll see if they work as expected and take it from there.

Thanks again!