mirror of
https://github.com/neocities/neocities.git
synced 2025-04-28 11:12:30 +02:00
Attempt to route 404.html without actually testing it
This commit is contained in:
parent
9b00bd0169
commit
ffba6fb7e0
2 changed files with 2 additions and 2 deletions
2
Rakefile
2
Rakefile
|
@ -509,7 +509,7 @@ task :generate_sitemap => [:environment] do
|
|||
site_files = []
|
||||
|
||||
sites.each do |site|
|
||||
site.site_files_dataset.exclude(path: 'not_found.html').where(path: /\.html?$/).all.each do |site_file|
|
||||
site.site_files_dataset.exclude(path: 'not_found.html').exclude(path: '404.html').where(path: /\.html?$/).all.each do |site_file|
|
||||
|
||||
if site.file_uri(site_file.path) == site.uri+'/'
|
||||
priority = 0.5
|
||||
|
|
|
@ -8,7 +8,7 @@ server {
|
|||
error_page 404 = @notfound;
|
||||
|
||||
location @notfound {
|
||||
try_files /not_found.html @notfound_root;
|
||||
try_files /not_found.html /404.html @notfound_root;
|
||||
}
|
||||
|
||||
location @notfound_root {
|
||||
|
|
Loading…
Add table
Reference in a new issue