google indexing

Alex Koshel asked on July 31, 2024 19:08

While indexing a site using Google, we get a strange address line in the report: https://host/privacypolicy.aspx/queue.aspx/join.aspx/es5.aspx/direct_resolve.aspx/finally.aspx/cancel.aspx/async.aspx/debuggability/synchronous_inspection/promise/nodeback/catch_filter/finally/thenables/catch_filter/schedule/util/catch_filter/es5/method/bind/ When you click on this link, the site opens. what could be the problem? original address https://host/privacypolicy. How fix this?

Recent Answers


Juraj Ondrus answered on August 2, 2024 07:49

It seems that your site has been hacked. Please see this article and the best way would be upgrading to a supported version with latest hotfix. Also, check the security setup of your media libraries.

0 votesVote for this answer Mark as a Correct answer

Alex Koshel answered on August 2, 2024 10:02

Is there a way to redirect such urls to a 404 page?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on August 2, 2024 10:13

0 votesVote for this answer Mark as a Correct answer

Mary Kusy answered on October 2, 2024 10:39

The strange URL you mentioned, which is much longer and includes a series of .aspx pages followed by what seem like JavaScript-related terms (/promise/nodeback/catch_filter/...), likely indicates an issue related to URL rewriting or misconfigured server settings. Here's a breakdown of potential causes and how to fix them:

Possible Causes: Misconfigured URL Rewriting (IIS or Web Server):

If you're using a web server like IIS (which supports .aspx pages), the URL rewriting module may be incorrectly appending additional parameters to URLs. This can happen due to improper rules in the web.config file. SEO Crawling or Indexing Issue:

Search engine crawlers (like Google's) could be hitting a script or handler that is generating these extended URLs dynamically. This can confuse the indexing process. Routing Issues in Application Code:

If the site relies on custom routing logic (common in ASP.NET applications), there could be a bug where incorrect URLs are generated by certain methods or handlers. This might also happen when certain internal methods (like promises or catch blocks in JavaScript) are incorrectly appended to URLs. Potential Caching or Redirect Loops:

Sometimes, caching systems or URL redirection can cause recursive URL generation. If the site handles privacy policy or terms via different redirects, this could lead to such a situation. How to Fix It: Check URL Rewriting Rules:

Review the URL rewriting rules in the web.config or any other configuration file used by the server. Look for patterns that might be incorrectly rewriting URLs or adding unnecessary parameters. Check Application Routing:

Ensure that your application’s routing logic doesn’t unintentionally append methods, handlers, or parameters to the URLs. Specifically, check how your application is handling requests to /privacypolicy.aspx and similar pages. Disable Debugging or Verbose Logging in Production:

If this issue is related to server-side debugging tools, make sure that you are not running the site in debug mode or logging unnecessary output on live servers. These settings can sometimes leak internal method names into the URL. Verify Redirects:

Ensure that any redirects or URL forwarding rules are functioning correctly and not recursively appending additional elements to the URL path. Clear Cache and CDN Configuration:

If you're using a caching layer or a CDN (Content Delivery Network), clear the cache to prevent old or misconfigured URLs from being served. Review Search Console Data:

In Google Search Console, check if there are errors related to URL crawling or indexing. This might give you more clues about where the problem originates. By correcting URL rewrites and ensuring clean routing, you should be able to prevent these strange URLs from appearing.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.