•  tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
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.
  •  tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
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:

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

Can it cause this problem with YAF 2.3?
I dont know why this happens, but i guess disallowing the path in the robots.txt would solve the problem i guess.

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