Skip to content

Instantly share code, notes, and snippets.

@MindyPostoff
Created May 22, 2015 18:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MindyPostoff/a0dbaf04de6e61467f62 to your computer and use it in GitHub Desktop.
Save MindyPostoff/a0dbaf04de6e61467f62 to your computer and use it in GitHub Desktop.
Windows Servers web.config for WooCommerce Endpoints
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers accessPolicy="Read, Execute, Script" />
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
@Paulap35
Copy link

@MolyMalon
Copy link

Hello, I am working on my local website with Xampp.
Where should I put the code that goes into web.config for the wocommerce endpoints to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment