Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a default page on Azure Web App

I'm having a problem with a redirect to a default page.

I have https://url.to.azure.website.net but when I just go to this page it responds with a 403 forbidden. I know this is due to a missing default page.

However when I go to https://url.to.azure.website.net/en/home.html, I do get my home page.

How can I set my default page to direct straight to the /nl/home.html ?

Little extra: Is it possible to not show the ".html" extension in the url?

like image 890
Tom Kustermans Avatar asked Nov 09 '22 05:11

Tom Kustermans


1 Answers

Web Apps allow you to specify the default page. You'll find this in the various settings:

default documents

However: This isn't going to let you specify a virtual directory path, such as /en or /nl as you have shown. You'll need to deal with redirects within your app / routes / etc.

like image 168
David Makogon Avatar answered Nov 14 '22 21:11

David Makogon