Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
2649b1a4
Commit
2649b1a4
authored
19 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
option to send 404 header for missing pages
darcs-hash:20051125123614-7ad00-42e0ab6a594e177603175ee37467fc2bdd45d2cb.gz
parent
24bad1d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conf/dokuwiki.php
+1
-0
1 addition, 0 deletions
conf/dokuwiki.php
doku.php
+5
-0
5 additions, 0 deletions
doku.php
with
6 additions
and
0 deletions
conf/dokuwiki.php
+
1
−
0
View file @
2649b1a4
...
...
@@ -80,6 +80,7 @@ $conf['subscribers'] = 0; //enable change notice subscription sup
$conf
[
'pluginmanager'
]
=
0
;
//enable automated plugin management (requires plugin)
$conf
[
'compress'
]
=
1
;
//Strip whitespaces and comments from Styles and JavaScript? 1|0
$conf
[
'hidepages'
]
=
''
;
//Regexp for pages to be skipped from RSS, Search and Recent Changes
$conf
[
'send404'
]
=
0
;
//Send a HTTP 404 status for non existing pages?
$conf
[
'rss_type'
]
=
'rss1'
;
//type of RSS feed to provide, by default:
// 'rss' - RSS 0.91
// 'rss1' - RSS 1.0
...
...
This diff is collapsed.
Click to expand it.
doku.php
+
5
−
0
View file @
2649b1a4
...
...
@@ -53,6 +53,11 @@
//make infos about the selected page available
$INFO
=
pageinfo
();
//send 404 for missing pages if configured
if
(
$conf
[
'send404'
]
&&
!
$INFO
[
'exists'
]){
header
(
'HTTP/1.0 404 Not Found'
);
}
//prepare breadcrumbs (initialize a static var)
breadcrumbs
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment