This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes no-www to www question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "no-www to www question" Watch "no-www to www question" New topic

no-www to www question

Den Wightman

Joined: Mar 05, 2012
Posts: 2
If the server.xml in Tomcat 5.5 has:

<Host name="">



Will the user still see the address with no-www if they go to, or will it automatically change it to

If not, is the urlrewritefilter the best way to do that?
Koen Aerts
Ranch Hand

Joined: Feb 07, 2012
Posts: 344

Unless you specifically set up redirect rules (for instance in Apache HTTP server) or your web app doesn't somehow redirect to "www" pages, the URL will remain whatever was entered in the client's browser address bar.
Den Wightman

Joined: Mar 05, 2012
Posts: 2
OK that's pretty much what I thought. Thanks.
jQuery in Action, 2nd edition
subject: no-www to www question
Similar Threads
WebGroup/Virtual Host to handle /ibm/console has not been defined.
WA #1.....word association
Problem making a proxy server
Virtual Hosts on iPlanet 6.0
how to call a jsp function with in a hyperlink