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.

elvinga at 2007-7-12 16:39:55 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
Hi Elving,I suppose we need to purchase new licences for Sun Java System Web Server 7.0. This is not in our current plans now.Thanks for your reply. We need to go through URL filtering using servlets.Regards
Morphiea at 2007-7-12 16:39:55 > top of Java-index,Web & Directory Servers,Web Servers...
# 3
Sun Java System Web Server 7.0 is free to use.
mva at 2007-7-12 16:39:55 > top of Java-index,Web & Directory Servers,Web Servers...