Hosting static HTML / JavaSript page in Umbraco Cloud
Hello,
Does anyone know how I can host a separate HTML page on my Umbraco cloud build?
I'm currently stuck trying to workout how I can create a new folder on my Umbraco cloud site and host a third party video tour. The video tour is a index.html file with folder containing lots of images / JavaScript / XML files.
I'd like it so I can host the files on my Umbraco project so I can keep it on the same domain, so the URL is https://mydomain.com/video-tour
I've cloned my Umbraco cloud site locally and have added a /video-tour folder to the files at root level along side the App_code, scripts, Umbraco folders etc.
In the folder I've put a basic index.html test file.
When I now go to the page (http://localhost:26966/video-tour/) I get the following error message:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Can anyone help me with the above? Or know how to host and load a HTML file so it loads on my domain at the file path?
Hosting static HTML / JavaSript page in Umbraco Cloud
Hello,
Does anyone know how I can host a separate HTML page on my Umbraco cloud build?
I'm currently stuck trying to workout how I can create a new folder on my Umbraco cloud site and host a third party video tour. The video tour is a index.html file with folder containing lots of images / JavaScript / XML files.
I'd like it so I can host the files on my Umbraco project so I can keep it on the same domain, so the URL is https://mydomain.com/video-tour
I've cloned my Umbraco cloud site locally and have added a /video-tour folder to the files at root level along side the App_code, scripts, Umbraco folders etc.
In the folder I've put a basic index.html test file.
Following this documentation (https://our.umbraco.com/documentation/Reference/Config/webconfig/), I've gone into the web config file and added the lines to mean Umbraco will ignore this folder and file:
When I now go to the page (http://localhost:26966/video-tour/) I get the following error message: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.
Can anyone help me with the above? Or know how to host and load a HTML file so it loads on my domain at the file path?
Thanks in advance
Hi Jack
You need to add a rewrite rule that will let your server know - Show HTML file when "/video-tour" Url requested.
In your case, IIS just tries to show to the user //video-tour folder - what is not allowed.
You need Rewrite rule like this:
Thanks,
Alex
And for U9 and U10?
I tried in the appsettings.json according https://our.umbraco.com/Documentation/Reference/Configuration/GlobalSettings/
... "ReservedPaths": "~/template/," "ReservedUrls": "~/template/index.html," ...
Do I need also I rewrite rule?
If I open mydomain.ch/template/index.html error is Status Code: 404; Not Found. If I open mydomain.ch/template/ I see an Umbraco-404 Errorpage.
is working on a reply...