Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 1.28 KB

troubleshooting.md

File metadata and controls

25 lines (13 loc) · 1.28 KB

Troubleshooting

Basic Auth not working

Certain server arrangements don't allow the Basic Auth credentials to be made available under PHP. To get around this, you'll need to set an environment variable in the site root .htaccess file.

See https://github.com/cedaro/satispress/wiki/Basic-Auth for more info.

Rewrite Rules

Some servers don't route URLs ending in file extensions through WordPress' front controller, so it's possible that some rewrite rules SatisPress registers won't work. This primarily affects the route that delivers the packages.json file for Composer since it ends in .json. You will typically see a 404 error document generated by the server rather than a 404 page with your theme's design if this is the case.

Try visiting the Settings → Permalinks page and flushing the site's permalinks first if the URL for packages.json doesn't work. Rewrite Rules Inspector is a handy plugin for viewing or flushing rewrite rules.

If that still doesn't work, you may need to add a rewrite rule to your server:

Apache

An external rewrite rule should be automatically added to .htaccess to handle packages.json.

nginx

rewrite ^/satispress/packages.json$ /index.php last;

Back to Index