Why does hello.do redirect when .do is not a TLD? - tld

I was recently playing around and typed in hello.do to see if .do was a TLD. It redirected me to a page in both firefox and chrome but .do is not a TLD so I'm confused as to why.
Any ideas?

Related

How to redirect a page based on browser used

I have a page on my site that doesn't display well when viewed from Mozilla Firefox. I have some jQuery codes that don't work on Mozilla. It displays well on Some other browsers.
I am wondering if there is a way I can redirect my visitors who use Mozilla to an alternate URL where I will remove the jQuery code.
Pls any help?
Thanks.

file:// links in XUL browser

I'm trying to get the XUL browser in a Firefox app to display images from "file://" locations, from a page at http://localhost.
I'm running the app with Firefox 30.
I've tried this, but to no avail :
var branch = browser.preferences.getBranch("capability.policy");
branch.setCharPref("policynames", "localfilelinks");
branch.setCharPref("localfilelinks.sites", "http://localhost");
branch.setCharPref("localfilelinks.checkloaduri.enabled", "allAccess");
What's the correct way of allowing file links ?
I don't think it's a good idea run file:// content inside http://. Why can't you use chrome:// or http:// for the images. chrome:// URLs are easy to locate and they come always with your app.

How to change domain.com/#!/url to domain.com/url

I would like to know, is it possible to change links structure from domain.com/#!/home to domain.com/home
I tried using htaccess but it doesn't change anything. I was looking for information on the Internet and found out that it is calling "ajax crawling". Unfortunately I have not found how to remove/disable/redirect.
Please help me.
You can't modify the URL fragment (everything after the #) using mod_rewrite or an htaccess file. These fragments are never sent to the server so anything on the server side is unable to access them. While you can redirect the browser to a URL with a fragment, you'll never be able to detect whether a fragment exists.
You'll need to do the redirect using Javascript on the browser's end. Check for the fragment and redirect the browser to a URL in the form of domain.com/url.

Embedded QR code image from google charts api is redirecting to broken https URL

I have a QR code image that's embedded from the Google Charts API. Recently it stopped working, but I haven't changed anything in my code.
Here's the page (note the broken images): [redacted]
As you can see, the images are embedded as http:// but when they are loaded, they're redirecting to the https:// URL on the google domain, which is broken.
Why is this redirect happening?
Edit: forgot to add -- what's even stranger is that if you view the image in a new tab, then change http to https (in effect, making the url the exact one that was originally requested),
it loads fine.
Edit #2 removed the link to my test site, as I've fixed the problem.
Turns out the google charts domain has changed. The new one is:
https://chart.googleapis.com
do not use
http://chart.apis.google.com

Facebook page serving, bookmark ajax hashes, but no redirection when JS disabled

I would be grateful to find out some really weird things I have seen on facebook URLs
If I bookmark this URL (found when JS is enabled)
http://www.facebook.com/HumanRightsWatch?v=app_2344061033#!/HumanRightsWatch?v=box_3
Then disable JS
I then proceed to revisit the same url
e.g. http://www.facebook.com/HumanRightsWatch?v=app_2344061033#!/HumanRightsWatch?v=box_3
and its sends me here:
http://www.facebook.com/HumanRightsWatch?v=app_2344061033&_fb_noscript=1
There is no redirection happening, im checking headers and getting a 200 ok
My question is, how is this done? I guess it cant be using JS redirection because thats disabled. Is there any other form of redirection that it could be using without showing it in the headers?
Yours, deeply confused :#
Cheers
Ke
ahh i see, its using a meta refresh tag

Resources