Thanks
I will try it. In the mean while is it essential for me to use
apache ? can i do something by only using Tomcat.

thanks
ashish


                                                                                       
                            
                    Loïc Lefèvre                                                       
                            
                    <llefevre@fiv        To:     <[EMAIL PROTECTED]>      
                            
                    ia.com>              cc:                                           
                            
                                         Subject:     RE: Customize Url Rewriting      
                            
                    07/30/2001                                                         
                            
                    11:51 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    tomcat-user                                                        
                            
                                                                                       
                            
                                                                                       
                            




The answer is YES, using mod_rewrite apache module.
Add it to your <VirtualHost></VirtualHost> or in mod_jk.conf
if you don't use Virtual Host.

example:

RewriteEngine on
RewriteLog /usr/local/tomcat/logs/rewrite.log
RewriteLogLevel 9

RewriteCond %{REQUEST_URI} ^/(.*) [NC]
RewriteRule ^/(.*) /index.jsp?$1 [PT]

;-)

-----Message d'origine-----
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:38
À : [EMAIL PROTECTED]
Objet : Customize Url Rewriting


Hi!
I was wondering if there is a way that one can add something to
the url rewirting scheme.
To make things clear what i want is this
Can i plugin some code so that all the urls in the html/jsp pages for
my site can have a content attirbute some thing of this sort.
http://mysite.com/home/ugotit.jsp becomes
http://mysite.com/index.jsp?jsessionid=......&content=ugotit.jsp.



TAI

ashish





Reply via email to