Virtual subpages – how to do it?
-
Hi – I’d like to have a portion of my WordPress site have a “virtual” page structure – meaning have pages that don’t exist in WordPress as posts/pages but are generated by custom PHP code by parsing the URL.
Specifically, I want to have a single page located at the URI
/docs/, and whenever you browse to a URI that starts with/docs/– even when the URI continues after/docs/(e.g./docs/x/y) – I want WordPress internally to still invoke just that one page. Then, some custom PHP code (e.g. in the page template) will look at the actual URI (e.g. extract thexandy) and depending on that, display different content. So for the user (or Google) it looks like they browsed to different subpages of/docs/when really they just went to one page that knows what to show based on the rest of the URL.Also (to make this question more interesting ;-)), I’d like
WP Super Cacheto still cache each of these pages as if they were actual WordPress pages.How hard/hacky would it be to make this happen?
Thanks a lot!!!
The topic ‘Virtual subpages – how to do it?’ is closed to new replies.