Previous Next

Thread: Limitations: Kernel cache & mod_rewrite directives?

Last post 08-27-2008 5:40 AM by brashquido. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 08-12-2008, 6:06 AM

    Limitations: Kernel cache & mod_rewrite directives?

    Hi All,

    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;

    example.com/index.php?q=mypage

    to this;

    example.com/mypage 

    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?

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 08-15-2008, 12:49 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 562

    Re: Limitations: Kernel cache & mod_rewrite directives?

    What file example.com/mypage corresponds to? Can you pls paste your caching section?

    Thanks,
    Kj
    P.S. Won't you rewrite example.com/mypage to example.com/index.php?q=mypage to enable user friendly URLs.

  • 08-18-2008, 1:09 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 207

    Re: Limitations: Kernel cache & mod_rewrite directives?

    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?

    http://ruslany.net
    Tags:
  • 08-27-2008, 5:40 AM In reply to

    Re: Limitations: Kernel cache & mod_rewrite directives?

     Hi, sorry for the late reply.

    1) Great!

    2) The Gallery 2 PHP app uses the RewriteBase directive when generating user friendly URLs.
     

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 1 (4 items)
Page view counter