Page 1 of 1

How to load app from simple url?

Posted: Mon Oct 15, 2012 8:18 am
by ChrisH
Currently I can have users load system:port/xxxxx?start

if instead I want them to just type myapp.mysystem.net what would be the recommended method to do this? Something in the index.htm or .htaccess

Are there examples for loading Profound apps this way?

Re: How to load app from simple url?

Posted: Mon Oct 15, 2012 11:20 am
by Scott Klement
Hi Chris,

Probably the easiest way is to make an index.html file that redirects the HTTP server's default URL to your ProfoundUI start page.

For example, you might create an HTML file like this and put it under /www/profoundui/htdocs/index.html:

Code: Select all

<html>
<head>
<meta http-equiv="Refresh" content="0;URL=/profoundui/start">
</head>
<body onload="window.open('/profoundui/start','_top')">
</body>
</html>
Now when someone points their browser at http://yourserver.com:8080, it will read that index.html file, and the file will redirect the broiwser to /profoundui/start

To eliminate the need to type the port number (8080), you should set up your HTTP server on port 80. Port 80 is the default, so is the port number that's used if none is given in the browser.

So, with those two changes, typing "yourserver.com" in the browser will result in running the /profoundui/start page.

There are other ways to do it (via Apache's mod_rewrite, for example) but this is probably the simplest.