Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Server IIS web.config support #93

Open
Digiover opened this issue Jan 21, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@Digiover
Copy link
Contributor

commented Jan 21, 2016

Hi,

I'm not sure this is the right place for this, but here goes:
It bugs me that WP-Super-Cache lacks IIS web.config support, even though this support is available in WordPress Core through the $is_iis7() boolean. What can I do to fix that? :) It'll be horror to write the appropriate web.config rewrite rules, I know, but I think it'll help a lot of WordPress users hosted on Windows Server IIS.

I've successfully converted the generated .htaccess file and rules to web.config, which works great.

@kraftbj

This comment has been minimized.

Copy link
Contributor

commented Jan 21, 2016

Can you provide a sample of the converted rules? I'd need to rig up a Windows VM with IIS or something to that effect to test it out.

@kraftbj kraftbj added the enhancement label Jan 21, 2016

@Digiover

This comment has been minimized.

Copy link
Contributor Author

commented Jan 21, 2016

Thank you for your prompt reply!

You can recreate this rule beneath in Internet Information Services Manager (IIS Manager) > URL Rewrite > Import Rules, once you have a WPSC generated .htaccess file. Currently, I'm running with the rule in the attached file.

All seems fine with this and similar Rewrite rules. I have some more information and advance gzip rules available on my blog, but that requires far more IIS tweaking and system administrator assistance.
wpsc-rewriterule.txt

@Digiover

This comment has been minimized.

Copy link
Contributor Author

commented Feb 3, 2016

For your information, I noticed an error in my web.config: there can't be two {HTTP_USER_AGENT} lines, they have to be concatenated into one.

@Digiover

This comment has been minimized.

Copy link
Contributor Author

commented Jun 26, 2016

@kraftbj maybe we can contact off-list / github for this: if needed I can set you up with a shared hosting website on one of our IIS web servers.

@rbergonzini

This comment has been minimized.

Copy link

commented Feb 27, 2017

Hello,
I'm not sure this is the right place for this request: I am trying to enable wp-super-cache on a Windows Hosting Server 2012 R2. Trying to activate the plugin in the entire Wordpress site goes into error. Apparently this is the only plug-in cache enabled running for Windows. Via the phpinfo we verified that WinCache is enabled.

Any suggestion is welcome.
Thank you. Best Regards.

@Digiover

This comment has been minimized.

Copy link
Contributor Author

commented Feb 28, 2017

@rbergonzini Unfortunately this is not the right place for your request. Unless you encounter a new bug in WPSC :)

I've just replied to your support question on the WordPress forums.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.