mod_rewrite and WO to rewrite /index.html into
Chad Leigh <[email protected]> Fri, 2 Dec 2005 12:01:26 -0700
| Newsgroups | gmane.comp.web.webobjects.admin |
|---|---|
| Message-ID | <[email protected]> |
I would like a simple apache rewrite of /index.html into the start of
my wo-app. I do not want a redirect but want /index.html to actually
return the main page of my app without a redirect. Right now I am
just interested in the main page. Maybe later I will play with
other things.
Anyway, I have googled WO and mod_rewrite and it says, if I
understood things correctly, in the various posts, to place
mod_rewrite after the AddModule / LoadModule for mod_webobjects. I
have done that (have actually tried both).
My rule is a simple one
RewriteEngine on
RewriteLog logs/mysite.com-rewrite_log
RewriteRule ^index\.html$ cgi-bin/WebObjects/app.woa
I have also tried it with [PT] for pass-through at the end of the rule
Nothing happens and I do not get anything in the rewrite log, which
was created but stays 0 length.
Has anyone used rewriting in this way?
Thanks
Chad