Is there a way to hide a page from the public? I don’t mean toggling its visibility by adding or removing the number in front of the content folder, but actually hiding a page so that it becomes inaccessible when directly called.
In this case I’m setting up a very simple blog, where each article is a subpage. It has been decided that these articles should be shown in full on the “blog” page, and that there shouldn’t be a dedicated page for each article.
My guess is that I’ll have to tweak the .htaccess file, but I’m sure there’s a cleaner way to do this…
You could use a route, so that if the subpage is directly accessed, it will bump you to the same post on the main blog page. If you give each post a UID in the HTML ID, you should be able to jump to it directly. See the docs on routes here.
I don’t think .htaccess will work because you cant jump to an ID within a page via an .htaccess redirect.