tecman
  •  tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
2020-05-01T15:45:05Z
Google Search Console is reporting more and more forum pages the Google Bot can't find, and this error is typical. My forum is hosted in the 'forum' sub-directory of the root directory on the website. If the domain name is 'example.com', the forum is located at 'https://example.com/forum/' and URLs of all topics and posts should start with 'https://example.com/forum/'. However, Google finds a lot of pages which start with 'https://example.com/forum/forum/' and sure, it can't find them, reporting a server error 5xx for all them. I can't find those pages, but it seems Google knows how to find them as the number of such errors is constantly increasing.

I've checked the Forum Base URL Mask parameter in the Admin Settings and it correctly points to 'https://example.com/forum/', so I have no clue why this problem occurs. Can you help me with that?

P.S. Currently using YAF 2.31.2. As I remember, I never experienced this problem earlier and it appeared after upgrade to YAF 2.3.
Sponsor
tecman
  •  tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
2020-05-04T15:22:20Z
Can it be a redirect problem?

We use the following extra block added to the standard web.config to do redirects from HTTP to HTTPS:

<rewrite>
	<rules>
		<rule name="HTTP to HTTPS redirect" stopProcessing="true">
			<match url="(.*)" />
			<conditions>
				<add input="{HTTPS}" pattern="off" ignoreCase="true" />
			</conditions>
			<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
		</rule>
	</rules>
	<outboundRules>
		<rule name="Add Strict-Transport-Security when HTTPS" enabled="true">
			<match serverVariable="RESPONSE_Strict_Transport_Security"
				pattern=".*" />
			<conditions>
				<add input="{HTTPS}" pattern="on" ignoreCase="true" />
			</conditions>
			<action type="Rewrite" value="max-age=31536000" />
		</rule>
	</outboundRules>
</rewrite>


Can it cause this problem with YAF 2.3?
tha_watcha
2020-05-06T08:19:45Z
I dont know why this happens, but i guess disallowing the path in the robots.txt would solve the problem i guess.
UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved