2013-09-13, 06:48:43
I've got thru the documentation again. get_header() ain't that important. It's the link creating i18n replacements (like get_i18n_navigation(), get_i18n_link(), etc.) that need to be put instead of core functions for URIs to be "properly" generated and for %parents% tag to get parsed.
Still, those URIs won't work without some kind of a magical serverside rewrite, becasue GS expects to get a single slug (+params):
Like the comment explains, on Apache this can be achieved within .htaccess, but on nginx this may be a problem because of how nginx server configuration is organized. I'm running an nginx server myself and I still can't figure out that rewrite rule (my regex-fu is pretty basic).
Even then it's a sort of cheat, because it doesn't matter if you go with:
or
coz' both will work.
Still, those URIs won't work without some kind of a magical serverside rewrite, becasue GS expects to get a single slug (+params):
Code:
# get page id (url slug) that is being passed via .htaccess mod_rewrite
if (isset($_GET['id'])){
$id = str_replace ('..','',$_GET['id']);
$id = str_replace ('/','',$id);
$id = lowercase($id);
Even then it's a sort of cheat, because it doesn't matter if you go with:
Code:
http://site.com/page-with-children/child-page/subchild-page/
Code:
http://site.com/subchild-page/