-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Thank you all for your help and supported documentation links...

I am now successfully able to map my document root to the servelt i have
written... But there is one more and probably last question in this
chain...

I have put following line in my httpd.conf file:
RewriteRule ^/$ /servlets/HelloWorldServlet [R]

so, when i type url like :http://www.myserver.com

it is redirectiing to http://www.myserver.com/servlets/HelloWorldServlet

Now this /servlets/HelloWorldServlet is also appearing in the url
texfield as this is actually a redirection.. Now, I don't want to appear
that /servlets/HelloWorldServlet in the url once it is redirected... I
mean I don't want a web user to know that actually he/she is actually
viewing a servlet and not an html page... so, what i want to do is,
though it is redirecting to servlet, the url in the url field should
remain the same what user has typed in...

Is there any way to do that???? I have tried to put directive 'Alias'
after that redirection line.. but didn't work...

Thanks again for your help..

Niral

Henner Zeller wrote:
> 
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> Hi,
> On Thu, 30 Sep 1999, Richard Hallier wrote:
> RH| Module REWRITE works well
> 
> but make sure that it is executed first in the chain in apache. That means
> mod_jserv must be mentioned BEFORE rewrite in httpd.conf (since the chain
> goes bottom - up)
> 
> ciao,
>  -hen
> ---
> Henner Zeller                                 [EMAIL PROTECTED]
>  PGP pub key [77F75B39]: finger [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]

-- 
Regards...
****************************************************
Niral K. Trivedi, Planet Access Network Inc.
Email : [EMAIL PROTECTED]
Phone : 973-691-4704 x134


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to