WordPress.org

Ready to get started?Download WordPress

Forums

PB Responsive Images
[resolved] IIS configuration (3 posts)

  1. Edward Brey
    Member
    Posted 1 year ago #

    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"/>
    </rule>

    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.

    http://wordpress.org/extend/plugins/pb-responsive-images/

  2. Jacob Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    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!

    Thanks,
    Jake

  3. Jacob Dunn
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags