Unwanted URL redirect - dns

Days ago, I've set up a URL 302 redirect, from subdomain.mydomain.com to target_A.com. I did it in AWS route 53 first, then removed it.
More recently, I added a CNAME record in Cloudflare from subdomain.mydomain.com to target_B.com. However, when entering subdomain.mydomain.com in my browser, I still get redirected to target_A.com ...
How is that possible? Somebody else in my team might have set up a redirect from subdomain.mydomain.com to target_A.com using a DNS web service other than AWS or Cloudflare... How do I find it and remove it?

I had a page rule in Cloudflare that was the cause of my redirect (https://support.cloudflare.com/hc/en-us/articles/200172286-How-do-I-perform-URL-forwarding-or-redirects-with-CloudFlare) ...

Related

How to change DNS settings to redirect website.com to www.website.com?

I have a DNS linked to Sites using CNAME from www in my DNS settings below. So when i type www.website.com it redirects me properly but when I type website.com nothing happens. I am thinking about editing # to add something to redirect to the www but I am not sure how to do that. Cold you please help me out?
Depends on the web server your utilizing, but what your looking for is url redirects. You can put in different urls and have the redirect to the primary. So you would place your domain.com in here to redirect to your binded url which is the www.domain.com. should also be able to use it to redirect http to https, though this is usually less of an issue with browsers and servers today.

Why this unregistred subdomain redirect to my wordpress?

Im using powerdns in my VPS, yesterday in poweradmin I entered a subdomain to redirect to wordpress. Today, I decided to delete this subdomain, I delete it from poweradmin and its VirtualHost, but this subdomain continue redirecting to my wordpress. I've checked many times virtualhost and all is ok, I executed dig command, and it says this subdomain doesn't exist. I don't know what's happening, if I deleted the subdomain from poweradmin, it oughtn't redirect to wordpress
All DNS servers cache queries. Until the TTL (time to live) of your record expires, some DNS servers will return the address you entered yesterday.

5 characters appearing in URL

I've been having an issue off and on, hard to reproduce, but happening reasonably regularly.
I have static files on Azure blog storage, and here's the setup - a lot of steps to set up, but it works most of the time - I used this blog as my guide:
index.html lives on the "webfiles" container in blob storage
the CDN points to /webfiles
there's a URL rewrite in the CDN setup from / to /index.html
DNS redirects http://example.com to https://www.example.com
DNS for www points to the CDN URL
When I go to http://example.com, 9 times out of 10, it properly redirects to https://www.example.com/ and loads the index.html page. However, sometimes, and it seems to generally be on a clean browser with no history, it'll send me to something with 5 extra characters, like https://www.example.com/VeVPe/ where I get a 404 and a BlobNotFound exception - I have no idea what VeVPe is, and it seems to be different for different sites. I have 5 sites set up like this, and it happens to all of them.
If I remove that 5-letter (always seems to be letters, never numbers, but that could just be coincidence) and hit ENTER, it loads properly and I get index.html, or if I just try http://example.com a second time, it works properly. Just seems to be one time.
I've also seen it happen to other sites in the public - there's a local school where the website sometimes redirects me to http://www.example.com/LNnZS/ and a 404 page - that one seems to be the same thing, but it's not HTTPS, so that seems to eliminate at least some of the possible causes. I don't know who their DNS or hosting providers are, so I don't know if it's specific to Azure or GoDaddy.
This happens on Chrome and Edge on desktop and Safari on iPhone, so it's not a browser or computer issue.
If it helps, here's what the URL redirect and rewrite look like on Azure:
EDIT I'm seeing something interesting when I can catch it in browser tools:
The initial request to http://example.com goes to GoDaddy's IP and returns a 302 Found to Location /KVZQZ/. Then there's a request to http://example.com/KVZQZ/ which is returned by GoDaddy's IP with a 301 with a Location https://www.example.com/KVZQZ/, and the third request actually makes it to Azure's IP which returns the 404 for BlobNotFound.
So to me, this looks like it's a DNS problem, not a problem with Azure. My DNS settings are:
A # Forwarded to https://www.example.com
CNAME www example.azureedge.net
On the forwarding section of the DNS setup, it just forward to https://www.example.com with a 301 forward type. So from what I can tell, nothing too funky here.
After a lot of Googling - This forum post shows lots of people who have had the same problem where 5-letter codes get added to their site. It's apparently specific to GoDaddy and no one has been able to convince them to address it. Their workaround is to throw a query string on the forwarding address.
I changed the forwarding address from https://www.example.com to https://www.example.com? and it's working ok now.
I made a request in the browser to http://example.com and it redirected me to https://www.example.com/?/MKSTc/ and loaded up the index.html page - obviously this is not ideal because it's ugly, but I suppose I can write some javascript to do a second redirect back to https://www.example.com/

Is my website www or without www subdomain?

This seems like a really stupid question, but I can't tell if my website uses the www subdomain or without.
I purchased an expired domain a month ago and set up Google Webmastertools with a sitemap and all. It's indexed, but when searching for the website name, it's no where to be found. Webmastertools says that 'no data is available.' The support states that the www subdomain may be a factor.
How can I verify this? I've used info: domain.com, site: domain.com, info: www.domain.com and site: www.domain.com It pulls up domain.com
Thanks in advance!
Need to find whether the both www and non-www are pointing to same IP address. For this, Open command prompt (click start button >> run >> provide code "cmd"). Once command prompt is launched, then run the code "Ping domain.com" you can find a IP address and then run "ping www.domain.com" and you get another IP address. If both IPs are different then you have setup A record in DNS.
If they are same IP address, non-www need to redirect www or www redirect to non-www. To find this, provide both URLS on http://www.redirect-checker.org/ find out which are getting 200 status. The 200 status URL are need to be added on webmastertool.
Let me know if you need further help.
Who is handling the DNS? If you own domain.com, the www. is (as you said) a subdomain.
You can register any subdomain you want as long as you are pointing it to somewhere. For example if I set up domain.com with DNS pointing to the hosting I would create an A record for the subdomain www that points to the same IP address.
From there I would check the Host server and (I use IIS) make sure that the bindings for the domain are set up, usually I bind it to www.domain.com as default and then just send domain.com there.
I hope this helps answer your question

Redirect www.subdomain domain mask to subdomain

I currently have subdomain.example.com as a domain mask for my website, using a CNAME record in my DNS settings. The website it is masking (lets call it mask.external.com) recognizes subdomain.example.com on its server and gives us a specific page.
My issue is that www.subdomain.example.com was bringing up a 404 'page not found', and after adding a CNAME record making www.subdomain.example.com as a second domain mask for mask.external.com, would simply give us a general page (not tailored to our website).
I was wondering if there was anything we could add (DNS records, .htaccess, etc) that would redirect www.subdomain.example.com to subdomain.example.com BEFORE it tried to visit this external service, so that we could properly serve it to users who type www.subdomain.example.com
Thanks in advance!
If you have cpanel then there might be an option in your cpanel to redirect subdomains to domain with and without a prefix "www".

Resources