aspose file tools*
The moose likes Glassfish and the fly likes How to add www to URL in production? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Glassfish
Bookmark "How to add www to URL in production?" Watch "How to add www to URL in production?" New topic
Author

How to add www to URL in production?

Alona SoftEng
Greenhorn

Joined: Mar 03, 2013
Posts: 2
How to redirect example.com to www.example.com with glassfish? (adding www to every page URLs)

Thanks,
Alona


Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Greetings Alona SoftEng ,

Why dont you just Configure virtual servers and assign your web-apps to them.

In domain.xml


then edit the network-config to configure according to your new host


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Alona SoftEng
Greenhorn

Joined: Mar 03, 2013
Posts: 2
Saif Asif wrote:Greetings Alona SoftEng ,

Why dont you just Configure virtual servers and assign your web-apps to them.

In domain.xml


then edit the network-config to configure according to your new host


Since in such way both www.abcxyz.com and abcxyz.com are available.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add www to URL in production?