manifest.json not found due to WP treating it as a 404 page
-
PROBLEM:
WordPress’s URL rewriting system treats all non-WP URLs (like /reactpressapp/manifest.json) as potential WordPress pages or posts. When it doesn’t find a matching page/post, it returns 404 error instead of serving the static file directly. This causes issues with Progressive Web Apps (PWAs) and other modern web applications that rely on manifest.json.
manifest.json not found due to WP treating it as a 404 page
In my ReactPress setup, it’s serving my React app to this page
https://my-wp-site.com/reactpressapp/
manifest.json is available here: https://my-wp-site.com/reactpressapp/manifest.json
Yet WP redirects https://my-wp-site.com/reactpressapp/manifest.json to a 404 not found page because it is treating it as a page rather than an exposed resource. I’m not doing anything special. How is manifest.json supposed to be exposed and does it work out of the box with ReactPress?
Edit: the problem could actually broader than this and might extend to other static assets also that are being exposed from the ReactPress nominated page /reactpressapp/
The topic ‘manifest.json not found due to WP treating it as a 404 page’ is closed to new replies.