How to let open an index.html file stored inside a subfolder of /content?

I always get the 404 page.
I guess it has something to do with .htaccess but - which rule exactly?

thanks

Are you trying to load this file directly via the browser? Or are you trying to read it and render it’s contents in your template?

The first thing.

And why are you trying to do that? That’s not how Kirby works. All URLs are sent through the index.php and thus through Kirby’s router.

# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]

You’re right but - i’m using flipbook software, wich is a sw that let embed pdf documents inside html pages. Flipbook delivers a package made of:

  • an index.html file (with a lot of business logic inside)
  • a subfolder with al the pdf’s
  • another subfolder with js and flash stuff.

Moreover - with kirby2 I could!

why not create a content representation that echoes the content of the html file?

but i guess that k3 media routing might still not allow access to the pdfs etc since they di not have metadata files. but i am just guessing here.

That’s what I’d suggest as well, or read it in a standard template.

I don’t think metadata files are needed.