tiny syntactic fluff
This commit is contained in:
parent
d7e34d61d2
commit
ad87295ed5
2
blogalba
2
blogalba
|
@ -216,7 +216,7 @@ get '/:extpage' => sub {
|
||||||
return $page->output;
|
return $page->output;
|
||||||
};
|
};
|
||||||
# 404
|
# 404
|
||||||
any qr{.*} => sub {
|
any qr/.*/ => sub {
|
||||||
return redirect '/' if request->path =~ /index(?:\.(?:html?|pl)?)?$/;
|
return redirect '/' if request->path =~ /index(?:\.(?:html?|pl)?)?$/;
|
||||||
status 'not_found';
|
status 'not_found';
|
||||||
#return redirect '/404.html'; # this doesn't actually work, need to find a better way of 404ing using nginx's 404 page
|
#return redirect '/404.html'; # this doesn't actually work, need to find a better way of 404ing using nginx's 404 page
|
||||||
|
|
Loading…
Reference in New Issue