|
Home > Archive > WebSphere HTTP Server > February 2004 > Redirect for 404, alias
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Redirect for 404, alias
|
|
|
| Hi,
I am new to IBM/Websphere/Java. Currently I work on the Microsoft
platform coding .asp pages in VBScript. On our site we give our users
the ability to type in a short catchy URL which redirects the user to
a longer more cumbersome url. For example the user types in
http://mysite.com/TodaysPromo.asp and it will redirect them to
http://mysite.com/subdir1/subdir2/s...odaysPromo.asp. We have a
lot of these type urls and the way we currently handle this is through
custom error handling for HTTP 404 errors. Any 404 error gets
redirected to a script that has code like:
If Left(LCase(strOriginalURL), 15) = "TodaysPromo.asp" then
strMappedURL = "subdir1/subdir2/subdir3/TodaysPromo.asp"
ElseIf ...
Else
strMappedURL = "default.asp"
End If
Response.Redirect strMappedURL
How would I do this processing in the Unix/IBM/Websphere world?
Thanks in advance for any help.
|
|
|
|
|