[Solved] Simpler URL
Posted: Tue Feb 15, 2011 4:57 pm
Hi Everyone,
Forgive my limited HTTP experience, but I was hoping someone could help. We currently make use of the "workstnid" and "suffixid" parameters in the ProfoundUI URL. This is used to prevent duplicate device errors and allow up to 35 simultaneous logins per unique URL.
We use some Javascript on our website to generate a random "workstnid" in the URL, from PUIWEB1 to PUIWEB99. This is done to allow up to 3500 users (though we'll never even come close to that). It works great. Here is what our current URL looks like:
However, when we give a link to a client (as opposed to just telling them to go to our website and click on the link there), we have to give them the entire URL, like this:
The #### is set to their assigned client number, so something like PUI0572. This doesn't matter program-wise, just for a unique workstnid.
My question is this: would it be possible to have a simpler URL, but achieve the same result? Perhaps some URL rewriting in the httpd.conf file? We would like to hand out a simple URL to our clients, something along the lines of "https://xxx.xxx.xxx.com/" or "https://xxx.xxx.xxx.com/client". Perhaps this would also eliminate the need for the Javascript-generated unique URLs?
Any help is much appreciated. Thanks!
Forgive my limited HTTP experience, but I was hoping someone could help. We currently make use of the "workstnid" and "suffixid" parameters in the ProfoundUI URL. This is used to prevent duplicate device errors and allow up to 35 simultaneous logins per unique URL.
We use some Javascript on our website to generate a random "workstnid" in the URL, from PUIWEB1 to PUIWEB99. This is done to allow up to 3500 users (though we'll never even come close to that). It works great. Here is what our current URL looks like:
Code: Select all
<script type="text/javascript">
var str = "Client Portal";
document.write(str.link("https://xxx.xxx.xxx.com/profoundui/start?pgm=RECLIB/PUIMENUCL&workstnid=PUIWEB" + (Math.floor(Math.random()*99)) + "&suffixid=1"));
</script>
Code: Select all
https://xxx.xxx.xxx.com/profoundui/start?pgm=RECLIB/PUIMENUCL&workstnid=PUI####&suffixid=1
My question is this: would it be possible to have a simpler URL, but achieve the same result? Perhaps some URL rewriting in the httpd.conf file? We would like to hand out a simple URL to our clients, something along the lines of "https://xxx.xxx.xxx.com/" or "https://xxx.xxx.xxx.com/client". Perhaps this would also eliminate the need for the Javascript-generated unique URLs?
Any help is much appreciated. Thanks!