Which file should this header() statement should be put in?garvinhicking wrote: So did you already have the chance to check what $serendipity['GET']['subpage'] is being set to in the staticpage plugin? You could emit those variables for debugging via a header() call and view them using firefox extensions like LivEHTTPHeaders. So you don't need to echo them to destroy the layout.
EDIT: I solved the problem. I had to change in the configuration the field: "Relative path" from "/serendipity/" to "/".