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
-
How to increase the DA of a site?
I have done work on my site for 6 months, and still, I cannot find any progress because the DA in the MOZ is not increasing, and of course, I'm not getting rankings. What should I do now? I have been producing unique and new content too. Check my Site: http://www.apksoldier.com/avg-cleaner-pro-apk/
Link Explorer | | ndjkiu770 -
Why would a site (competitor) show up in Keyword SERPs Analysis but not show up in Rank Tracker for the same keyword?
I used Rank Tracker to evaluate a specific site for "geofencing software" - the result was "not in the top 50." However, if I go to Keyword SERP analysis and put in the same keyword "geofencing software," it shows the specific site within the first page results in SERP. I verified the ranking with a google search of my own and the site does show in the first page results. Why is Rank Tracker not matching Keyword SERP results?
Link Explorer | | Bluedot_IO0 -
301 Permanent Redirects
ISSUE: 301 Permanent Redirect | http://www.ctgmanagedit.com 301 Permanent Redirect Yes Target https://www.ctgmanagedit.com | | https://www.ctgmanagedit.com/ 301 Permanent Redirect No | https://moz.com/blog/301-redirection-rules-for-seo According to the above article you lose 15% page rank on permanent redirects. Our site and domain was launched without any migrations. Is there a way to fix this problem?
Link Explorer | | CTGManagedIT
Please 101 me on this question. Thanks,
Kevin Welch
817-557-40910 -
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 -
When the site explorer will recognise the new TLD?
Hey, I own a website, called tipster.website I noticed that the site explorer doesnt recognise the domain extension. When they will be added too? I dont know if the other extensions work , but this one definitely doesnt work. ps: majestic.com also don't recognise the extension.
Link Explorer | | nyanainc0 -
Flush Open Site Explorer data
Hi folks Recently (about a month ago) we launched a new website. However, when I use Open Site Explorer and look at the "Top pages" tab, old URL's which no longer exist, appears in the list. Is there some way to get around this? Thanks.
Link Explorer | | jyskvin0 -
Does OSE crawl our site often? Or do we have an other problem? (internal links)
I am wondering if i can find out when OpenSiteExplorer crawled our entire website for the last time.
Link Explorer | | wilcoXXL
A few months ago we added some internal textlinks to all of our productpages. Those are links to the brandpage of that particular product. Some of our brands do have up to 1500 products, so there should be at least 1500 internal links pointing to that brandpage. But OSE still gives me a wrong count. It says there is only 1 internal link pointing to that brandpage.
Is it because OSE never crawled our site again? Or am i missing something here?(maybe too many internal links to one specific brandpage is not okay?) I'll hope you guys can help me out with this one.0 -
Why do 0 back links show for my website in Open Site Explorer?
I've read and understand that all back link tools results will vary from one another but Open Site Explorer and some others find 0 linking to my site. Webmaster tools show 46 back links. Is this because they are all "no follow"? I'm trying to get a grip on SEO but am very confused from the get go. Thanks, Todd
Link Explorer | | Grateful_Monk0