Developer forum

Forum » CMS - Standard features » Areas and subdomains

Areas and subdomains

Tom Kamphuis
Reply

Hi guys,

Probably some issue somebody encountered before but... I'm building a website containing multiple area's and languages. These area's are accessible using a subdomain in the url. For example: I have an area called bikes and an area called cars, both on the website wheels.com. I've added domain information for the area's. The area bikes has the following domain information: bikes.wheels.com and the cars area has the domain information cars.wheels.com. In IIS I added bindings on my wheels.com website for both subdomains for http and https.

On my local machine these settings work ok. When navigating to bikes.wheels.dev (local machine) I see the bikes website and when navigating to cars.wheels.dev I see the cars website. But when I publish to a test environment using the same database, configurationsettings and web.config I only get access to one area. When I call for the other area I get redirected to the first one. Example: when I requested bikes.wheels.com and I request (using a different browser) cars.wheels.com I get redirected to bikes.wheels.com.

Anybody any idea what could go wrong when using the (presumably) exact same settings?

Cheers,
Tom


Replies

 
Nicolai Høeg Pedersen
Reply

On your test server you will have to update your domain information with the test server URLs - so on your dev server you use cars.wheels.com and on your test server you use cars.wheels.dev - the list of domains needs both.

Can you post a screendump of your settings?

 
Tom Kamphuis
Reply

Hi Nicolai,

Thanks for your answer but we managed to find the problem (some extarnel login provider redirecting to a given, fixed, url). There is however still one problem that bugs me. When looking at the following url: https://cars.wheels.com/nl-nl/products/subcategory/marketing-and-promotion/shiny-rim-1 you can see the -1 added to the Shiny Rim product name in the url. This product is only used once in this shop but can be used in multimple area's / shops (the cars and bikes shops). 

Is it possible to leave the product name (or category names) intact? While the url is unique through the addition of the subdomain.

Cheers!
Tom

 

You must be logged in to post in the forum