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
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
-
Link explorer section showing different linking domains numbers
Hello Moz, I recently activated my trial version, when I go into link explorer section. The linking domain option on Moz bar showing a different number. when i check the site into ahref, it's showing 14 linking domains, and when i check in Moz it's only showing me 4 linking domains. what is the problem? Which tool showing the accurate result. I am confused. please help.
Link Explorer | | NewDisplayAsi0 -
Moz's new Link Explorer, including our revamped index and DA/PA scores is now open to everyone!
Hey Moz Community, Link Explorer is now open to the public! Everyone can access it via a subscription or a free Moz ‘Community’ account. As you may know by now, the brand-new Link Explorer tool is primed to replace Open Site Explorer as Moz’s link building and analysis tool. The Link Explorer project is the result of an incredible amount of perseverance and hard work by the team, and we’re proud to be able to finally share it with you — we know it’s going to revolutionize how you approach link building and make your job easier. You can read more about the tool here in Sarah Bird’s announcement post. Because Link Explorer improves on almost every aspect of Open Site Explorer, the metrics have improved, too. That means you’re likely going to see some Domain Authority and Page Authority discrepancies between OSE’s index and Link Explorer’s index. We definitely suggest you use the new DA/PA from Link Explorer, as they’re more accurate and refresh daily rather than monthly, as was the case with OSE’s index. However, we also realize that many of you use these metrics to report to your clients and colleagues, and a sudden change or fluctuation could potentially make your job harder. Which DA is the real DA? The new DA is based on a much larger index that has many improvements, several of which are designed to make the index more like Google’s than ever before. You should consider moving towards the new DA (and the old DA won’t be updated after April 26th 2018, so the sooner the better). While there will be fluctuations as we improve the model and add features to the index, we expect it to remain largely stable and to be a far more accurate picture of a site’s authority according to how it’s seen by Google. Why is Link Explorer’s DA/PA considered better than OSE’s, and which should I trust? The larger link index with improved crawl selection allows us to produce a stronger model that includes a much larger proportion of the web. That being said, DA and PA should always be considered in the context of your competitors. A drop in PA or DA relative to the old OSE is of little concern if your competitors saw similar movement. Is Domain Authority/Page Authority an absolute score or a relative one? Both DA and PA are relative to the Internet as a whole. If Facebook acquired a billion new links, everyone’s PA and DA would drop relative to Facebook. Because of this, it’s always best to look at PA and DA in comparison to your competitors. What does a drop/raise in DA mean in Link Explorer vs OSE? How can I explain this to my clients when I’m reporting it? DA and PA should always be considered in the context of your competitors. A drop or raise in PA or DA relative to the old OSE is of little concern if your competitors saw similar movement. Reporting that your site has moved from a DA of 45 to a DA of 42 doesn’t tell the whole story, but reporting that your site has a DA of 42 while your main competitor moved from a 43 to a 37 shows that, relative to the sites you’re competing against in the SERPs, your site has significantly more authority and ranking power. What’s happening to MozTrust and MozRank and why, and what should I replace those with? The improvements to our DA/PA and Spam Score metrics now now account for more important nuances in helping you determine one site’s ability to rank higher than another. Because they no longer correlate with Google’s ranking model as well as they used to, MozRank and MozTrust are being deprecated for better metrics. Users should rely on Page Authority, Domain Authority, and Spam Score to determine the importance and quality of pages, domains, and links. I have historical data I use to help my clients benchmark their progress. What do I do now that DA is calculated differently? You should annotate any KPI changes referencing the change in DA and PA. However, most importantly, you should compare those changes to your competitors, as this will best show how strong your site’s authority is relative to the sites you’re competing against in the SERPs. We take updating our metrics very seriously, and our last major update to the model was 7 years ago. Users of Domain Authority and Page Authority can expect us to continue to produce steady, reliable metrics for the long haul, and only make changes to these metrics when we believe the benefits dramatically outweigh the stability of the metric. Do you have any questions about the new metrics? Anticipating a tough time reporting changes to clients or bosses? Metrics, features or functionality missing that you would want to see? Let us know in the thread, and we’ll work to find a good answer for you. Hope you enjoy the new Link Explorer product and the amazing new link index powering it. We are very excited to provide this valuable data to our community and customers.
Link Explorer | | IanWatson9 -
Use Open Site Explorer and the Keyword Difficulty Tool to find your competitors' keywords and how they're ranking for them. Get your Daily SEO Fix!
In today's Daily SEO Fix, Jacki walks through using Open Site Explorer's anchor text report to find keywords your competitors may be targeting, and how to use the Keyword Difficulty Tool to tease out what's helping them rank. Watch "Keyword Research with OSE and the Keyword Difficulty Tool" now! The Daily SEO Fix is an ongoing series of Moz tool tips and tricks in under 2 minutes. To watch all of our videos so far, and to subscribe to future ones, make sure to visit the Daily SEO Fix channel on YouTube. If you'd like a more in-depth guide to using the Keyword Difficulty Tool and its Full SERP Analysis Report for competitive insights, check out Cyrus Shepard's excellent Moz Academy video on the subject.
Link Explorer | | MattRoney1 -
How can I get a Moz crawl report of 404 errors on my site
I have a Moz subscription and I see dead links on my website that link externally. Is there a Moz crawl report which will show me these 404 errors and which pages on my site those 404 links are on?
Link Explorer | | Marbanasin0 -
Open Site Explorer Question
Hello Mozers. It has been a while 🙂 OK - I run an open site explorer report, toggle over to 'Linking Domains' because I am more interested in the number of actual websites that link to my client rather than the number of links my client has (and of course what websites are linking) and although I have been doing this for years there is one little thing I am a bit confused about. The report shows (from left to right) the 'Linking Root Domain", the "Domain Authority" for the linking domain and then the 'Number of Linking Root Domains" for each 'Linking Root Domain" My question is (rather stupid, I am sure) is the number of linking root domains for each linking root domain the number of websites linking to them OR the number of websites to which they link?
Link Explorer | | Vizergy1 -
Why does the number of the total external links and the followed linking root domains between Open site explorer and the campaign in Moz pro doesn't match?
Opensiteexplorer returns 52.473 total external links and 715 followed linking root domains while my campaign in Moz analytics return 35.899 total external links and 1092 followed linking root domains. Does anyone knows how this is possible?
Link Explorer | | ConversionMobstars0 -
Open Site Explorer Recently Discovered Links Question
Hey Mozzers, I have a question regarding the Open Site Explorer Recently Discovered Links. I know that I have receive follow link from a few sites that have more DA than my site. I am wondering why it is taking so long for OSE to discover these links? I double checked the sites to make sure that they don't have NOFOLLOW (sorry for the double negative), and the sites have linked to my site for over a month now. Any ideas? I'm not concerned about it because Search Engines have discovered those links. I am just curious why this is, or if it is normal. Cheers!
Link Explorer | | evan890 -
Open Site Explorer Not Showing Full Pro Version
Um, could someone please let me know why OpenSiteExplorer is treating me like I don't pay $200 for a Moz Pro Membership? See screenshot attached VdCrxzY
Link Explorer | | RickyShockley0