Automatically correcting wrong urls...
Hi,
In my web server error log I see tons of misspelling of .jsp:
.jps
.isp
.jrp
How can I tell web server that when a url request arrives with these file suffixes, replace them with .jsp and serve correct file?
My web server is actually a wap server, and many clients are using cell phones. That's why there are so many errors as above.
Solution needed for IWS 6.1 SP7.
[420 byte] By [
Morphiea] at [2007-11-27 6:00:57]

# 1
A bunch of new URL rewriting functionality was added in Sun Java System Web Server 7.0. It would be useful here. For example, you could redirect clients that request a .jps file if the corresponding .jsp file exists:<If $uri =~ '^(.*)\.jps' and -U "$1.jsp">
Error code="404" fn="redirect" url="$1.jsp"
</If>This is a new feature in 7.0, though, so you can't use it in Sun ONE Web Server 6.1. If you need to stick with 6.1, you could develop an NSAPI plugin or a Servlet that would do the same thing.