This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
Hi All, Facing strange problem in our production environment that is redirecting the url is not working if the domain is not having www in the url.
here is the example:
we have one index.html file having the switch function for redirecting the curHost to specific action class and what action class will do is getting the domain(current host) and ip address of user and then read the properties file for getting the target url based curhost.ipaddress.
have you tried opening the URL without the www in a browser? If the redirection is happening on the server (eg being sent a 301 or 302 response code) you will need to take that into account in your code.