Strange Redirect Problem
Specifically it is complaining about the url: http://www.hikingwalking.com/concrete/images...
I can't see any .php or html file in this directory that might contain redirect code. This is certainly not a directory that I have touched or added files to.
In the search console I can fetch the page as google. When I do this I see the following:
Fetch as Google
Googlebot type: Desktop
Redirected on Tuesday, March 20, 2018 at 5:42:19 PM PDT
This URL redirected to:
Downloaded HTTP response:
1 HTTP/1.1 301 Moved Permanently
2 Date: Wed, 21 Mar 2018 00:42:20 GMT
3 Server: Apache
5 Cache-Control: max-age=1
6 Expires: Wed, 21 Mar 2018 00:42:21 GMT
7 Content-Length: 253
8 Keep-Alive: timeout=3, max=100
9 Connection: Keep-Alive
10 Content-Type: text/html; charset=iso-8859-1
12 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
14 <title>301 Moved Permanently</title>
16 <h1>Moved Permanently</h1>
17 <p>The document has moved <a href="http://www.hikingwalking.com/concrete/images/">here</a>.</p>
I have searched through the site trying to figure out how this is happening and can't find anything. There is code in the \concrete\symfony\http-foundation\RedirectResponse.php files -- specifically lines 98 and 101 (concrete 8.3) that seem to create this code, but I can't figure out how it is being trigger. Any ideas??
Google is penalizing my site because of this and a few similar redirects that I have not added to the site. Very strange.
Any help or suggests are appreciated.
Let me know if you figure out what is going on.
Did you by chance convert your site via the migration programs? I am wondering if this is some migration related problem....
I am having the same problem. I have cleared the cache, but that didn't solve my issue. The problem seems related to the pretty url .htaccess code, because when I take it off, I don't get that redirection notice...
Try that and see if it works
The thing is that my robots already had that line. I added Disallow: /concrete/images and I am waiting to see what happens. This is my robots now:
Sitemap: http://www.mysite.com/sitemap.xml User-agent: * Disallow: /application/attributes Disallow: /application/authentication Disallow: /application/bootstrap Disallow: /application/config Disallow: /application/controllers Disallow: /application/elements Disallow: /application/helpers Disallow: /application/jobs Disallow: /application/languages Disallow: /application/mail Disallow: /application/models Disallow: /application/page_types Disallow: /application/single_pages
I just get: Search Console has identified that your site is affected by 1 new Index coverage related issue. This means that Index coverage may be negatively affected in Google Search results. We encourage you to fix this issue.
New issue found: Redirect error
And it points out the page where the error is:
And when I go to that page, I get ERR_TOO_MANY_REDIRECTS
Then you will have to run the 'fix' with google and have them review it. They will let you know if it is fixed or not. But, this should take care of it.
Indexed, though blocked by robots.txt
First detected: 8/7/18
Really wish the community could come up with something where an exact fix for this issue comes out. I might try clearing system cache and deleting cache files off the server and removing the disallow in robots.txt to see what happens. Will post results if it works.