Mobile app version of vmapp.org
Login or Join
Alves908

: How to get rid of crawling errors due to the URL Encoded Slashes (%2F) problem in Apache The Google web crawler has indexed a whole set of URLs with encoded slashes (%2F) for our site. I

@Alves908

Posted in: #301Redirect #Apache #GoogleSearchConsole #Security #WebCrawlers

The Google web crawler has indexed a whole set of URLs with encoded slashes (%2F) for our site. I assume it has picked up the pages from our XML sitemap file. The problem is that the live pages will actually result in a failure because of the Url Encoded Slashes Problem in Apache.

Some solutions are mentioned here

We are implementing a 301 redirect scheme for all the error pages. This should make the Google bot delete the pages from the crawling errors (no more crashing pages). Does implementing the 301s require the pages to be "live"? In that case we may be forced to implement solution 1 in the article.

The problem is that solution 1 will pose a security vulnerability..

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

1 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

I would add a 404 handler to your site that is powered by a script. This is sometimes called a "smart 404 hander". In this script you could examine the url. If it has %2f encoded slashes in it, you could unencode them and issue a 301 redirect to the url that does not have them. Here is an example of such a script written in PHP

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme