Creating an index.html file

We will create an index.html file at the root of the website to redirect to the Cloud App.

In the directory where you extracted the PowerServer deployment ZIP, create a new index.html file:

Creating the index.html file

Write the following code into that file:

<html>
    <head>
        <script>window.location.replace('salesdemo_cloud/')</script>
        <meta http-equiv="refresh" content="5; URL=salesdemo_cloud/" />
    </head>
    <body>
      <p>If you are not redirected in five seconds, <a href="salesdemo_cloud/">click here</a>.</p>
    </body>
</html>

This will immediately redirect any visitors to the salesdemo_cloud subdirectory (if the client browser has JavaScript enabled) or after 5 seconds.