Skip to content

Instantly share code, notes, and snippets.

View jeremymoore's full-sized avatar

Jeremy Moore jeremymoore

  • Dallas / Fort Worth, TX
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jeremymoore on github.
  • I am jmoore2026 (https://keybase.io/jmoore2026) on keybase.
  • I have a public key ASAIfr0XWr1-rQk3GUnGpFB0p3OThlwp-Kq6G1ymTLPQNAo

To claim this, I am signing this object:

@jeremymoore
jeremymoore / gist:82bebfbf164a07f63ea3ef4cdf5a1cd7
Last active February 10, 2020 18:00
Web.Config for running Wordpress as a subdirectory on IIS. Additionally, created support for accessing the REST API, which changes routes to match the Site URL.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="static" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_URI}" matchType="Pattern" pattern="/wordpress/*" negate="true" />
<add input="{REQUEST_URI}" matchType="Pattern" pattern="/wp-json/*" negate="true" />
class MimeTypeGuesser extends BaseMimeTypeGuesser
{
/**
* Constructor overridden since it's private in the base class :/
*/
public function __construct()
{
if (FileBinaryMimeTypeGuesser::isSupported()) {
$this->register(new FileBinaryMimeTypeGuesser());
}