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
-
Page Authority higher on my old (redirected) domain than new domain?
Hi everyone. I moved the domain my blog was on about 18 months ago, and it's ranking in Google never recovered. I've noticed in the 'Inbound Links' tool that my old domain (jamescrowley.co.uk) shows a page authority of 26, while my new domain (jamescrowley.net) shows a page authority of 15. Any idea why that would be? 301 redirects have been in place for the whole 18 months, so I'd have thought the authority would have been 'passed on' by now? Many thanks James
Link Explorer | | james.crowley0 -
The New Link Explorer (which will replace Open Site Explorer) is Now in Beta
Howdy Moz friends, Today, the Moz team is making a new tool -- Link Explorer -- available in private beta for Moz Pro subscribers (including those taking a free trial). The tool is still a little ways out from public launch, but we wanted to get your feedback to help make it the best product it can be. What's Link Explorer? In essence, it's a replacement for Open Site Explorer (Moz's tool for link discovery, competitive analysis, and link building) that addresses many of its most pernicious challenges, such as: Daily updates - no longer will you need to wait a month or two to see a new DA score or the links you built last week. Link Explorer updates every 24 hours with all the new links we've discovered that day, and gives a new DA score each night. A MUCH bigger index - OSE has always been known for having quality links, but quantity has been an issue. No longer. The new tool's link index is more than 20 times larger than Open Site Explorer's, covering trillions of links across hundreds of billions of pages, while maintaining a focus on high quality domains and pages. Additional functionality - new graphs (like link growth over time), new charts (like gained+lost links), new filters and sorts, and some new kinds of data coming soon. Improved metrics - Domain Authority and Page Authority have both been upgraded to have better correlations with Google's rankings (and they now update every 24 hours) Insanely fast - page load times on the new tool are almost as fast as Google's results 🙂 Less time waiting means more time to dig into results Link Tracking Lists - check a box next to any links of interest and you can build lists in the tool to track them over time, see whether/when they link, prioritize your outreach efforts, and (in the future) get aggregated data and alerts about those links There's much more to come, but we'd love for you to check out Link Explorer, find bugs, report things you love (and don't), and help us make it the best possible product for you and your teams. You can leave feedback here in this Q+A thread, email help@moz.com, or send feedback through the feedback form in Link Explorer.
Link Explorer | | randfish18 -
Why is Open Site Explorer Showing me Spammy Links That I Already Removed?
Every two months or so, I like to download the OSE list of all the backlinks passing equity to my site. I do this so I can see which spammy links I need to try and remove. However, I see that OSE is still showing me links that I already removed...Either A) the page that is being linked to is 404-ed B) the spammy website that was linking doesn't exist anymore or C) the spammy site still exists, but the link is GONE. Why is OSE still spidering these sites and links? Does that mean Google is still spidering these links? Should I disavow them to be safe? Thank you! P.S We are not experiencing any drastic drops in traffic or penalties at the moment.
Link Explorer | | TMI.com0 -
Why is the company reference of "designed by" with a link back my web development site not being indexed as a link?
Using the Mozbar I am analyzing my links and my competitors links. I am noticing other web developer sites are getting credit/index links from all their client's websites with the "designed by...." link in the footer. However, for me I only see one "inbound link" in the link analysis report. Sometimes I notice a company getting several inbound links on one site they built. I have built many other sites and have my company link below on all the footers. Why are the other sites not showing up as "inbound links" on the link analysis report? Thanks for your help! Nikki
Link Explorer | | NikkiPatt0 -
[No Title] for all Top Pages at Open Site Explorer
49 out of the top 50 pages of the domain www.parallels.com shows [No Title]. I find this to be a major concern. Pages have long been established, title tags haven't changed recently. Am seeing a fair amount of 301 and 404s showing up, but actual OK 200 pages still showing [No Title]. Also seeing some decreases in organic search traffic at Google. Might there be a correlation?
Link Explorer | | ChristianMKG0 -
Learn how to reclaim links using Open Site Explorer: Get your Daily SEO Fix!
Hi there! We're excited to announce a new collection of video tutorials focused on tips and tricks with Moz tools--each in two minutes or less. We're calling this how-to series The Moz Daily SEO Fix, and over the next 30 days we will publish a new video every weekday. Our goal is to help you get the absolute most out of your Moz Pro subscription and learn new ways to accomplish your SEO objectives. In today's Daily SEO Fix, David explains how to use Open Site Explorer's top pages tab, as well as the filter for 4xx and 5xx errors to find the pages on your site with the most potential link equity that are broken and can be redirected. 301'ing these URLs to relevant pages on your site can give your rankings a serious boost. Watch The Moz Daily SEO Fix: How to Reclaim Links Using Open Site Explorer to learn how. To view more Daily SEO Fix videos, be sure to check out The Moz Daily SEO Fix playlist on YouTube.
Link Explorer | | kellyjcoop7 -
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 -
Is there an efficient way to use Open Site Explorer to find unnatural or harmful links
We have a new client with 8 sites that we would like to 301 to a new site. However, before doing so we want to make sure that the backlinks are not unnatural or harmful in any way. Using open site explorer (other than just looking at exact anchor text vs brand anchor text ratio) is there a way to determine low quality inbound sites linking in? or any type of links google will find manipulative?
Link Explorer | | Bryan_Loconto0