top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Tomcat: Redirection of mysite.com to www.mysite.com

+1 vote
887 views

I have a strange behavior and using tomcat7 on a debian.

My problem is that when in a browser I am writing mysite.com I am redirected with to www.mysite.com.

I am using the node host with some nodes alias.

I have searched in many configuration file and also on google but I do not find any answer to my behavior. Please help?

posted Dec 16, 2013 by Amit Parthsarthi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
What is your setup and configuration?

Have you used an HTTP protocol analyzer to see if the server is in fact redirecting the client?

2 Answers

+2 votes

I use a service called ZoneEdit (zoneedit.com) which lets you create records that cause similar redirections. For example, I can point a domain name, like mysite.com to xyz.techstuff.net with their records. Perhaps something like that is causing the redirection, rather than any entries on the server itself?

answer Dec 16, 2013 by anonymous
+1 vote

I could be way off-base here (it wouldn't be the first time!), but:

It could also be that your browser thinks it's smarter than you are. I've seen browsers apparently redirect themselves (without any redirect having been set up) to variations on a URL, and/or to whatever is set as
their default search engine, but so far as I know, that usually only happens if the browser can't resolve the URL as entered, or if the user didn't explicitly type the protocol prefix on the URL.

Does it happen with other browsers? Does it happen if you try it from someplace with a completely different web connection? Have you tried explicitly typing the http:// or the https:// at the beginning of the URL?

answer Dec 16, 2013 by Meenal Mishra
By the way, the setting name in Mozilla Firefox is "browser.fixup.alternate.enabled"
I usually explicitly change this and "keyword.enabled" settings to the value of "false".

http://www.mozilla.org/docs/end-user/domain-guessing.html
http://kb.mozillazine.org/Keyword.enabled
Similar Questions
+1 vote

I need to change a domain name example.com to www.example.com for example when i enter in the URL like example.com it should automatically redirects to www.example.com

For example enter the URL in browser algoosdigital.com it automatically redirects to www.algoosdigital.com

+2 votes

I setup an apache server a while back without a virtualhost and got everything working fine. I added a virtualhost and it seems to work fine on desktops, but on our phones (an iphone and a windows phone), both redirect to my root site if the user adds www to the domain in the address bar.

I assume its just some mistake in my virtualhost setup, but I dont understand why it works on desktop but not mobile. I added a ServerAlias to include the www prefix onto the domain and restarted apache, but it doesnt seem to make a difference. I always get the "root" (hope Im using the right naming convention) host back.

+2 votes

My url has # in the url. Could some one suggest how to use this to redirect. I do not have control over how the url is being generated as its a software product. The below rule does not seem to work.

RewriteRule ^(/share/page/repository#)$ /share/page/context/mine/myfiles [B,R]

I tried to escape the hash with [^c], but it does not seem to work..Any clues on how to handle " # "

+3 votes

which software (html/css/js..etc etc) is required to create website like www.livebooks.com or Photoshelter.com (DIY: do it yourself).
for Frontend and backend both??

+1 vote

In tomcat does the no . of open sockets on http port (netstat -anlp|grep 8080) is it equal to number of threads in use in tomcat .
Actually I want to understand how & when I can say that the all threads in a tomcat are fully utilized that why it is responding slow.

...