Developer forum

Forum » CMS - Standard features » Having issues setting up custom domains for multiple websites with customized urls

Having issues setting up custom domains for multiple websites with customized urls

Steve Knutson
Reply

Hi

We are hosting multiple websites in a single instance of Dynamic Web hosted in Azure. We have been developing using a unique website url (the Use in Url setting in Website Settings) in order to ensure unique urls and now we are in the process of switching this over to use individual domain names for each website.

We have setup the domain names in azure, and added to them to the domain names in the website settings as shown in the attached websitesettings.png . We would like the urls for the pages at the root level of the website to be directly of domain. e.g We would like the sell-grain page to be http://pggwrightsongrain-dev.stp.co.nz/sell-grain, as such we have selected Do not include URL in subpage URLs

We have selected the customized url settings as shown in customizedurls.png

Using the ?showurlindex=true query parameter the generted url index for the Area looks correct (see urlindex.png) but navigating to any page at the root of the website (e.g. http://pggwrightsongrain-dev.stp.co.nz/sell-grain) just returns the home page. All other pages resolve correctly.

Thanks

Steve

 

customizedurls.png urlindex.png websitesettings.png

Replies

 
Steve Knutson
Reply

Hi All

Well it turns out the issue was of our own making

We had implemented some custom Web API endpoints and were using the approach suggested in this tutorial video https://vimeo.com/217447832. Part of this was adding a Notification Subscriber on  the AuthenticateRequest notification in order to mark the requests to the custom web api endpoint as handled so Dynamic Web would not interfere. Unfortunately we had a case sensitive comparison (on the route handler name) that was incorrect and were inadvertently marking actual dynamic web requests as handled, which was causing the issue.

Cheers

Steve

 

 

 

 
Nicolai Pedersen
Reply

Hi Steve

Great you solved it - I was looking at it yesterday and my hair got one year older!! Could not explain it.

Thanks for the update!

BR Nicolai

 

You must be logged in to post in the forum