aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "no-www to www question" Watch "no-www to www question" New topic
Author

no-www to www question

Den Wightman
Greenhorn

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

<Host name="www.somewebsite.com">

<Alias>somewebsite.com</Alias>

...

Will the user still see the address with no-www if they go to http://somewebsite.com, or will it automatically change it to http://www.somewebsite.com?

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
Greenhorn

Joined: Mar 05, 2012
Posts: 2
OK that's pretty much what I thought. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: no-www to www question