Forum Discussion
PDDEV1
Dec 28, 2020Copper Contributor
Is it possible to disable the default URL assigned to the azure web app?
Is it possible to disable the default URL <webapp>.azurewebsites.net for a web app?
learn2skills
Dec 28, 2020MCT
I don't think you can turn off access to the website via [your cloud service name].azurewebsites.net domain.
However what you could do is include a rewrite rule in your web.config, so that whenever someone tries to access your website via azurewebsites.net domain, they are automatically redirected to your custom domain.
How to: Redirect the default *.azurewebsites.net domain to your custom domain on Azure Web Apps
https://www.zainrizvi.io/blog/block-default-azure-websites-domain/
Setup custom domain URL
https://docs.microsoftcommunitytraining.com/docs/setup-custom-domain-url