File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no-www to www question

 
Den Wightman
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 344
Java Linux Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK that's pretty much what I thought. Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic