Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Intermittent Too Many Redirects issue - suspect IIS Rewrite Cache

$
0
0

A website running WordPress responds intermittently with Too Many Redirects but only for specific URLs and only for approximately 30 minutes.  After that the page is served as expected.  The rest of the website responds correctly using the same rewrite rules.

For example, Failed Request Tracing shows the following for a particular URL:

URL_REWRITE_START RequestURL /category/referendum-2/

<snip>

REDIRECT_FROM_CACHE_ACTION CachedRedirectedURL http://www.website.com/category/referendum-2/ RedirectType Permanent

URL_REWRITE_END RequestURL http://www.website.com/category/referendum-2/

This obviously is the start of an infinite redirect loop.

When the URL is served correctly Failed Request Tracing shows:

URL_REWRITE_END RequestURL /index.php

If a querystring is added to the requested URL eg. /category/referendum-2/?key=value IIS serves the requested page correctly.  Because of this I suspect the querystring causes IIS to skip the rewrite cache meaning the cache causes the redirect loop.

I've seen the post at https://blogs.msdn.microsoft.com/danielvl/2010/01/07/registry-values-for-iis-url-rewrite/ detailing how to disable the rewrite cache via the registry but the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Rewrite does not exist.

Can anyone suggest if my suspicions re. the rewrite cache being the cause of the redirect loop are correct?

If so how can I proceed to resolve the issue?

Thanks


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>