NAVIGATION
This is an old revision of the document!
Example: The page will be redirected to a subdirectory.
Adoption: phpwcms is located in the subdirectory http://example.com/wcms/
Standard entries in the conf.inc.php
// site values $phpwcms['site'] = 'http://'.$_SERVER['SERVER_NAME'].'/'; // paths $phpwcms['DOC_ROOT'] = $_SERVER['DOCUMENT_ROOT']; $phpwcms['root'] = 'wcms'; //default: ''
If a requested page does not exist, it is often desired that a custom error page is produced with custom layout.
Under normal conditions the given layout of the page was delivered “home” with the error message of the range “Error”.
If we write in the “error” area in the template for “home” the following redirect, an error page with a separate layout can be created.
This error page lies typically in a hidden range of the system (ADMIN → site structure → frontend menu status: [x] hide).
http://example.com/index.php?404
Docu: –
Forum: mod_rewrite + RewriteRule + errorDocument
Author: Heiko H.
CMS Version: >= 1.26
Version: V1.0
Tag: –
fileiname: –
Folder: –
Condition: → /config/phpwcms/conf.inc.php
[PHP] Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://example.com/index.php?404" ); exit; [/PHP]