Skip to content

Instantly share code, notes, and snippets.

@domosedov
Created June 8, 2020 20:13
Show Gist options
  • Save domosedov/087d596d489e0d1e7a762d1ac302ac9d to your computer and use it in GitHub Desktop.
Save domosedov/087d596d489e0d1e7a762d1ac302ac9d to your computer and use it in GitHub Desktop.
For React with WP API
<IfModule mod_rewrite.c>
RewriteRule ^(api)($|/) - [L]
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment