[thelist] apache rewrite? I guess

Matt Warden mwarden at gmail.com
Tue Feb 1 12:42:08 CST 2005


Dan,

On Tue, 1 Feb 2005 13:30:03 -0500, Dan McCullough
<dan.mccullough at gmail.com> wrote:
> Yeah unfortunatly thats not what I need.  I have DirectoryIndex setup
> however when someone puts in http://domain.com/ instead of
> http://domain.com/index.jsp it bombs because the creator of the
> servlets didnt take the slash with no index.jsp into account.  I was
> looking for a quick way rather then pouring over his poorly written
> code.

Ah, I see. Sorry for the misunderstanding. How's something like this
for a band-aid:

RewriteEngine on
RewriteRule ^/$ /index.jsp [L]

Thjanks,

-- 
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the thelist mailing list