Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Open site explorer is giving me strange redirect message.
-
Hi all,
I tried to find answer in help section. Few people have asked this before but in none of the answers it tells how they fix it. Sorry I will need to ask here again.
In Open Site Explorer i get this message.
You entered the URL https://a-fotografy.co.uk/ which redirects to http://www.a-fotografy.co.uk/. Because it's likely to have more accurate metrics, we're showing data for the redirected URL instead. Click here to analyze https://a-fotografy.co.uk/ instead?
My current site is https://a-fotografy.co.uk/ not sure why it is redirecting to my old domain. Weird. My web developer couldn't explain this issue.
Saying that I also go my first analytics report and in priority issues I have
http://a-fotografy.co.uk 302 redirect and not sure where it is redirecting to.
If someone could shed some light of how to figure out how to find exactly what is redirecting to what and where is the problem.
Thank you guys,
Regards,
Armands
-
Hi Don,
I got web guy to fix the issue. Seems it should be fixed now and I should have 301 redirects.
Not sure why I still get that message in Open Site Explorer, but I have raised this with MOZ support.
Thanks Don for all your help.
Regards,
Armands
-
Hi Armands,
Looks like I made an error in the code posted above (I did not edit the original post it so we can see the problem).
The 4th line:
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Should be
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
Since we are redirecting to the HTTPS version.
The corrected code is as follows:
#If http is requested (ie https off) then redirect to https none www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
RewriteRule ^(.)$ https://%1/$1 [R=301,L]
#If https is requested (ie https on) then redirect to https none www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
RewriteRule ^(.)$ https://%1/$1 [R=301,L]That still shouldn't change the 302 problem you have, unless this code is executed prior to whatever is causing the 302. I just noticed the error myself and wanted to give you a heads up.
Thanks,
Don
-
Hi Armands,
Glad to help, as a side note if your developer can't get it sorted then you should be able to talk directly with your Hosting provider. These issues while can be complicated are somewhat common and most host have trained their help desk on how to fix them, at least from my past experiences with many different host.
Good luck,
Don
-
Thank you Don,
Not to worry. I think my developer is stuck now and has no idea how to fix those 302 redirects. Yesterday I noticed that there were few more coming up.
Around 2 month ago I changed the site. I have a feeling that something went bad during that process.
Now I have hundreds of 404 errors in my webmaster tools and pretty much all of them are old pages and some even from previous website before that which was 3 years ago. Not sure where it is picking up this from.
I also noticed that my previous websites urls making 302 redirects and they redirect from https to http urls.
Here is what happened when we launched new site.
- Changed over to new site. I still had my http address then few weeks after launch we decided that in long term it would be better to have https secure line. Then he added that https and that is where problems started.
Seems like old site now is picking up this https as well and doing those 302 redirects.
I even don't know why my old site is still being crawled and giving me errors. Weird.
I have passed your reply to my developer and see what he will say.
Thank you Don,
Regards,
Armands
-
Hello,
Sorry for not getting back to you sooner. Weekend and all..
Okay the problem is still there. You can check the header response codes yourself here:
http://tools.seobook.com/server-header-checker
The URL http://www.a-fotografy.co.uk/ 302 redirects to https://www.a-fotografy.co.uk/ which 301 redirects to https://a-fotografy.co.uk/
There are 2 possible problems I can think of. 1 the code to redirect http://www.a-fotografy.co.uk/ is still in the htaccess file and before the code I gave you. Or 2 the host has a domain redirect in place that is executing on the server before the htaccess is read.
For me to help you further please post the contents of your htaccess file and I'll see if there is something I can pick up on.
Don
-
Hi Jo,
We are back to drawing board.
My developer tried to fix this issue, but with no results.
Not sure what is wrong and why he can't fix it
According to webconfs header checker I still have 302 redirects.
I think the web guy made things even worse as on my current domain according to same header checker I have 400 bad request coming back.
Help please. Not sure what to do.
Thanks,
Regards,
Armands
-
Hi Don,
My developer tried to fix this issue today, used your suggested code, but still it seems site explorer brings up the same message He is stuck and not sure what else to do.
I don't know much about the code and he is saying that he has done everything possible.
If you have a minute, could you have a look what is the code now?
Thank you Don,
Regards,
Armands
-
That is correct, 302 is a temporary redirect so it does not pass link juice the same way, and should be fixed asap.
Glad to help,
Don
-
Hi Don,
Thank you for looking into this.
So basically I need to point all links to my existing domain.
I knew there is something weird going on.
My old www domain used to be very good in rankings and my guess now since there is 302 all link juice is not passed onto my new domain.
Thanks Don I will pass this info to my web developer.
Regards,
Armands
-
Hello Again,
Okay so it looks like what is happening is:
the http www version is 302 to the https.www version and the https.www version is 301 to the non-www. So what you have is one redirect pointing to another redirect.This is likely confusing Moz, or Moz has in the past crawled a different version and has more data for that so it wants to show you it instead.
The headers are:
302 Found
Status: 302 Found
Code: 302
Date: Thu, 31 Dec 2015 12:43:08 GMT
Server: Apache
X-FRAME-OPTIONS: DENY
X-XSS-Protection: 1; mode=block
Location: https://www.a-fotografy.co.uk/
Cache-Control: max-age=0
Expires: Thu, 31 Dec 2015 12:43:08 GMT
Vary: Accept-Encoding
Content-Length: 214
Keep-Alive: timeout=10, max=200
Content-Type: text/html; charset=iso-8859-1
Connection: close
301 Moved Permanently
Status: 301 Moved Permanently
Code: 301
Date: Thu, 31 Dec 2015 12:43:08 GMT
Server: Apache
X-FRAME-OPTIONS: DENY
X-XSS-Protection: 1; mode=block
Location: https://a-fotografy.co.uk/
Cache-Control: max-age=0
Expires: Thu, 31 Dec 2015 12:43:08 GMT
Vary: Accept-Encoding
Content-Length: 234
Connection: close
Content-Type: text/html; charset=iso-8859-1
200 OK
Status: 200 OK
Code: 200
Date: Thu, 31 Dec 2015 12:43:08 GMT
Server: Apache
X-FRAME-OPTIONS: DENY
X-XSS-Protection: 1; mode=block
Accept-Ranges: bytes
Content-Length: 21886
Cache-Control: max-age=0, public
Expires: Thu, 31 Dec 2015 12:43:08 GMT
Vary: Accept-Encoding,User-Agent
X-Powered-By: WP Rocket/2.6.15
Connection: close
Content-Type: text/html; charset=UTF-8What you want to do is get all your redirects to 301 to the correct version.
This should cover it in your .htaccess file
EDIT 01/07/2016: Please see the below responses for corrected code.#If http is requested (ie https off) then redirect to https none www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
RewriteRule ^(.)$ http://%1/$1 [R=301,L]
#If https is requested (ie https on) then redirect to https none www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
RewriteRule ^(.)$ https://%1/$1 [R=301,L]Hope this helps,
Don
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
WP Events Calendar Creates URLs Too Long in Site Crawler
My travel/tourism site is on WP and using an Events plugin that ads a calendar of events to many pages. The MOZ crawler is indexing almost 46K links with a URL too long, but the site only has about 3.8K pages indexed in Google. I can tell MOZ is indexing the same pages over and over again but just adding a random calendar month and year. Here are some examples. https://www.visitcurrituck.com/four-day-stay/?full=1&long_events=1&country[0]=US&ajaxCalendar=1&mo=10&yr=2003 https://www.visitcurrituck.com/four-day-stay/?full=1&long_events=1&country%5B0%5D=US&ajaxCalendar=1&mo=10&yr=2034 https://www.visitcurrituck.com/beach-houses-family-time/?full=1&long_events=1&country%5B0%5D=US&ajaxCalendar=1&mo=1&yr=1873 Any advice on how to prevent MOZ from indexing this way? I don't believe that Google is seeing this also, but maybe they are. I just know my site has over 63K issues and I'm sure at least 75% or more is because of the way they are picking up on the events calendar. Thanks!
Link Explorer | | CinivaAgency1 -
Open Site Explore page titles show as "No Title"
This has been asked many times but I cannot find an answer. On Open Site Explorer, most URLs I enter show as "No title" which means you have to hover over the URL to see which page is being referred to. I know you'd want an example, so here's your own site Moz.com 🙂 CWrkxZQ
Link Explorer | | clifra0 -
Site has DA of 26 but no backlinks
I'm asking this for a guy over at SEOchat: http://forums.seochat.com/new-user-seo-questions-answers-123/unusual-change-domain-authority-486962.html Here's what his post says: Exclamation Unusual Change in Domain authority
Link Explorer | | ThomasHarvey
Guys and Girls, I'm having a weird issue in one of my sites , thing is the site had DA 11 in July and however when check on September Site is having 26 without me doing any type of link building and there are no new posts for this month as well. When checked using open site explorer there are no backlinks indexed in their Mozcape index as well. Site: http://www.beijingtravelchannel.com/ Can you give me any plausible reasons for this to happen, so that i can check them out. Thanks in Advance.0 -
Spam Score and crawling of my site
Hello, I'm trying to analyze the spam score of my site which is 9/17 Actually I have few backlinks and all of them have a low spam score (max 4/17, just one). I think there's some kind of issue with the crawler since I get strange spam factors: Large Site with Few Links (likely true, I recently deleted a lot of tags used once) Low Number of Pages Found (wasn't it a "Large Site"??) Low Number of Internal Links (I got a considerable number) No Contact Info (I have a link to my facebook in the menu and a "contacts" page) Thin Content (It's just a blog with min 300 words per post, why thin?) Site Link Diversity is Low (likely true) Ratio of Followed to Nofollowed Subdomains (likely true) Low MozTrust or MozRank Score (true) Ratio of Followed to Nofollowed Domains (likely true) Can you please help me to understand it, is it a crawling problem or similar? If needed I will post the url of the website. Thank you so much Marco
Link Explorer | | MarcoBP0 -
How does spammy linked site have zero spam score?
I came across a law firm site with hundreds of horrible spam links to it. Of the 3330 links, all but 231 links have anchor text that has to do with "jordan 11s for sale". I'm trying to see how useful the moz spam score is, but clearly it's not reliable if this site has a score of zero. Many of the obviously spammy sites linking to it also have low to zero spam scores, although there are plenty in the 5-10 range. (see attached image). I also noticed that many sites were legit sites, but if you look at the source code, there's tons of hidden spam links in the code (e.g., www.chickasawgardens.net) Why would this site have a zero spam score? If you're curious, put it into open site explorer and have a look. It's a law firm based in Pennsylvania, most anchor text has to do with jordan sneakers and most links are foreign: penn-criminallawyers.com Is the spam score too lenient? Is the moz tool unable to find spam links coming from legitimate sites with hidden spam links? DrokMbP
Link Explorer | | usDragons0 -
Open Site Explorer and Expired Links?
Hi guys, I've been checking a few domains for SEO purposes and it appears that OSE is indexing a lot of links which no longer exist, this has been the case for over 6 months - does OSE cleanse expired links? As I'm sure they will be contributing to authority in the eyes of Moz?
Link Explorer | | lotterybase0 -
Open Site Explorer
I have entered my site (patioenjoyment.com) a few different times into the OSE and it never seems to find it, MOZ has found it because it has done the crawl test for me a few times, found some issues and I have been working on those. But I assume that if it is able crawl my site it should find it to run the OSE. It has come back with "**It looks like we haven't discovered established link data for this URL yet." everytime. ** Thanks, Julie
Link Explorer | | patioenjoyment0 -
301 Redirects: How long for Google to recognize? How long for Moz/OSE to recognize?
I redirected a few pages that had funky URL issues (capitals and underscores and useless words) to the same page renamed with proper URLs. The sitemaps were changed also, and re-submitted. Like this: mydomain.com/Not_Pertinent_Words.html >>> mydomain.com/good-words.html Google seems to have found them and changed the search engine results listing in about 8 days. But it's been about a month now and Moz and OSE still have not transferred all the strength and link data from the old URLs to the new ones. Question 1: How long does it usually take Google to transfer all the link and strength data for a 301? Question 2: How long does it take Moz and OSE to do the same? Is there something I need to do to tell them about the changes?
Link Explorer | | GregB1230