• How do I include static files that have no file extension?

    _redirects and _headers files are used by Netlify, Cloudflare Pages, etc to server side rules.
    ~/_redirects to set server side redirect rules
    ~/_headers to set server side header rules

    The debug log shows that the content type is being detected correctly, but since these files don’t have file extensions they are being treated like html pages https://plugins.trac.wordpress.org/browser/simply-static/tags/2.2.7/src/class-ss-url-fetcher.php#L181

    and that is producing filenames not recognized by those platforms:
    ~/_redirects/index.html
    ~/_headers/index.html

    How can I include these and other files while keeping the filenames the same? Is there a filter I can use, or something else?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Including static files with no extension’ is closed to new replies.