URL shortener (O4W)
At 17 JUL 2012 08:28:16AM Dave Harmacek wrote:
Does anyone use a URL shortener for their O4W pages? If so, which one?
or suggestions? I send an email in plain text so that the user can see that
it is legitimate.
In an application my O4W sends an email in text with a url. The recipient is
to click that url to get access to a page created on-the-fly in O4W, so it is
rather long. Some email clients (Outlook?) are wrapping the text url so that
the user gets an incomplete url, and thus no page.
Example:
the above was wrapped after "162"
Dave Harmacek
Harmacek Database Systems
At 17 JUL 2012 01:44PM Jared Bratu wrote:
What about using URL re-writing? You could change the URL to
http://www.somelongdomainname.com/g?U=TEST1O4W&O=16265.71211&O=1344.45460&D=VIEW
And have the URL rewrite module expand it to the proper URL. The result is still a little long but a lot shorter.
You could also hash the arguments and have a redirection routine. For example the arguments:
/online/oecgi3.exe/O4W_PORTAL?UID=TEST1O4W&OID=16265.71211&OPTID=1344.45460&DO=VIEW
Could become something like:
/g?d2da0a61f9c319fc503ed326dea81c0b
Where d2da0a61f9c319fc503ed326dea81c0b is an MD5 of the URL arguments.
The /g is a redirection script that looks up the hash to the corresponding URL.