IIS 7 and Above
URL Rewrite Module
Limitations: Kernel cache & mod_rewrite directives?
Last post Aug 27, 2008 05:40 AM by brashquido
Aug 12, 2008 06:06 AM|brashquido|LINK
Have recently started testing some apps with Microsoft's new URL Rewrite Module which for the most part has worked very well. However, I have hit a few snags and was wondering if anyone had any input which might help
1) Compatible with Kernel mode cache? I have a PHP based test site configured to use Kernel mode caching with the varyByQuery directive set to wildcard (*). In normal operation this works well and using the "netsh http show cache" command I can see the cache
being populated with all the various dynamic content. However when I use the URL Rewrite module to import some .htaccess rules to create user friendly URL's they are no longer inserted into the cache. The URL Rewrite rules rewrite the URL from this;
I'm guessing that this is because the PHP query string is written out of the URL before getting to the Kernel cache, but just wanted to check. User mode caching does not appear to have the same problem, though obviously is not as fast.
2) Will the URL Rewrite module ever support the RewriteBase directive from .htaccess? If not, are there any work arounds to this?
Aug 15, 2008 12:49 AM|ksingla|LINK
What file example.com/mypage corresponds to? Can you pls paste your caching section?
P.S. Won't you rewrite example.com/mypage to example.com/index.php?q=mypage to enable user friendly URLs.
Aug 18, 2008 01:09 PM|ruslany|LINK
1) CTP release of URL rewrite module is not compatible with kernel mode caching. Basically the module disables the kernel caching when URL gets rewritten. We are planning to provide support for kernel mode caching in beta release of the module.
2) There are no plans to support RewriteBase directive. Could you explain what you want to use it for in IIS?
Aug 27, 2008 05:40 AM|brashquido|LINK
Hi, sorry for the late reply.
2) The Gallery 2 PHP app uses the RewriteBase directive when generating user friendly URLs.