----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
What you need is mod_rewrite -- check your httpd.conf and see if it is
turned on/compiled in/the module is loaded.
Try this in your httpd.conf:
RewriteEngine on
RewriteLog /etc/httpd/logs/rewrite.log
RewriteLogLevel 0
RewriteRule ^/login(.*) "/instra/login$1" [PT]
You may want to set the RewriteLogLevel higher until you get things right.
For more info on mod_rewrite, check out the following URL:
http://www.apache.org/docs/mod/mod_rewrite.html
Thanks,
John Stotler
Eutectics Corporation
http://www.SocratEase.com
-----Original Message-----
From: Loic Grall [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 10, 2000 8:09 AM
To: Java Apache Users
Subject: How to redirect an URL?
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
#Jserv 1.2.2
#apache 1.3.12
#Linux redhat 6.2
Hello i'd like to redirect an url, as example:
from : http://localhost/login
to : http://localhost/instra/login (it's in order to invoke a servlet)
i had written in httpd.conf:
RedirectMatch (.*)/login $1/instra/login
the browser write http://localhost/instra/instra/instra...until there's
no mem...
I hope someone on this list might be able to help.
Thanks.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]