WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<?php if (PAGE_ID==24 | PAGE_ID==30 | PAGE_ID==45 | PARENT == 24 | PARENT==30 | PARENT==45 ) { echo "your-menu-call-here";}?>
What I am using right now is a hardcoded menu which only shows up when the URL matches specific criteria, e.g. ends with /prices.php. The issue is that the menu is also shown on custom htaccess error pages when you open a not-existing URL which also ends with prices.php. I don't want to show the menu on these error pages.
Do you have a better solution for showing / hiding a sub-menu on each separate page or do you have any suggestion how to avoid showing the menu on the htaccess error pages even though the URL matches?
Regarding the htaccess error page: It's not a redirect but the error page opens under the URL which you opened. Amazon and Zalando work similar:http://www.zalando.de/jack-jones-clark-original-jeans-dark-dim-ja222x016-953.html
There is no redirect to:http://www.zalando.de/error404.html
It's not redirecting to the error pages. The error pages are opened under the link which doesn't exist.
ErrorDocument 404 /en/error/404.php?redirect=1
&& !isset($_GET['redirect'])
@Argos: I show the main menu on the error page as well like Zalando does but I don't want to show my sub-menu on these pages.
<?php if (PAGE_ID!=0) { echo "your-menu-call-here";}?>
<?php if (PAGE_ID>0) { echo "your-menu-call-here";}?>