Support » Plugin: PB Responsive Images » [Plugin: PB Responsive Images] IIS configuration

  • Resolved Edward Brey


    Here’s some documentation you can add to help users on IIS avoid the same configuration headaches I had:

    Add this to your web.config:

    <rule name="wordpress-slir" stopProcessing="true">
    	<match url="^slir(.*)$" ignoreCase="false"/>
    	<action type="Rewrite" url="/wp-content/plugins/pb-responsive-images/slir/index.php?r={R:1}" appendQueryString="false"/>

    In slir/core/slirconfigdefaults.class.php, change these variables:

    public static $enableRequestCache = false;
    public static $documentRoot = "C:\\DWASFiles\\Sites\\yoursitename\\VirtualDirectory0\\site\\wwwroot";

    This is for hosting on Windows Azure web sites. The path may vary. Also, changing slirconfigdefaults.class.php feels like a hack. If anyone knows the proper way to override these defaults, please let me know.

    Finally, even with these changes, only images that were linked with an absolute URL were made responsive. To get relatively linked URLs to be responsive, perhaps an additional configuration change is required.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jacob Dunn


    Thanks for the heads up on those IIS woes, Edward. I’ve released a new version of the plugin that should take care of these issues. The document root is now dynamic for windows as well, and the symlink caching will fail gracefully and silently now. As for the web.config code, I’ve added that to the built-in help, as well as an alternative for IIS6 users.

    Also, relative and root-relative links should work now – though I wouldn’t recommend relative for most cases in WordPress. Sure you can handle that, though 😉

    Let me know if you have any other issues!


    Plugin Author Jacob Dunn


    Marking as resolved, as well. Always forget to check that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: PB Responsive Images] IIS configuration’ is closed to new replies.