cancel
Showing results for 
Search instead for 
Did you mean: 

Preview Website

boneill
Star Contributor
Star Contributor
Hi All,

My websites home page is not in the root of the project.  It is in a subfolder /ROOT/homepage/index.html.  When I click the View Website button it does not open as there is no page to open in the root.  Is there a way of configuring the Website Preview button so that it opens the correct page.

Regards

Brian
1 REPLY 1

pmonks
Star Contributor
Star Contributor
You need to configure your web site so that it redirects requests to "/" to "/homepage/index.html" when viewed within the virtualisation (preview) server.  If you've fronted the virtualisation with a web server (eg. Apache), you can configure this there (the exact mechanism for doing this depends on which web server you're using).  If you're running a "naked" virtualisation server, you'll need to use a Java application server mechanism (such as http://tuckey.org/urlrewrite/) to do this.

Cheers,
Peter