Hi list,

I can't figure out what is going on.  I have been using this page, it's
very useful:

http://httpd.apache.org/docs/mod/mod_rewrite.html

And, I have been trying to get my server to rewrite URLs.  I'd like to
get *anything* to work, even some kind of bogus example, but I can't
seem to do it.

I'm running tomcat 3.2.1 on a linux box with Apache 1.3.19.  I am
modifying my httpd.conf file that happens to be here:
/etc/httpd/httpd.conf

It appears to be loading the rewrite_module okay, and then I have these
lines in the httpd.conf file:

RewriteEngine On
RewriteLog /var/log/httpd/rewrite_log
RewriteLogLevel 8

(I'm using LogLevel 8 for debugging only -- I'll turn that off once I
get this working.  So far, the rewrite_log file gets created, but is
always empty!)

Then I have this line:

RewriteRule     ^/(.*)$ http://www.yahoo.com [R]

Which seems to me that it should redirect any URL to yahoo.

It just ignores it and does nothing.  I have tried many different
re-write rules to try and get something to happen, and nothing ever
does.  Does anyone have any suggestions?

I have also tried this:

RewriteRule     ^/(.*) http://www.yahoo.com [R]

Whenever I modify the httpd.conf file, I always stop and restart the
apache service before testing it.

What I would eventually like to have happen is this:  If someone
enters:

www.[myserver].com/name

Then I want that URL to be re-written as follows:

www.[myserver].com/template.jsp?doc=name

Thanks so much if anyone can help, I have been going nuts over this!

Doug Cannon


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to