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?
How to load app from simple url?
-
- Profound User
- Posts: 22
- Joined: Thu Mar 31, 2011 11:28 am
- First Name: chris
- Last Name: holko
- Company Name: genuine parts company
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: How to load app from simple url?
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:
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.
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>
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.
Who is online
Users browsing this forum: No registered users and 1 guest