404 redirect needs work
This commit is contained in:
parent
079aa79cf8
commit
c57dcff585
2
blogalba
2
blogalba
|
@ -219,7 +219,7 @@ get '/:extpage' => sub {
|
||||||
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';
|
#return redirect '/404.html'; # this doesn't actually work, need to find a better way of 404ing using nginx's 404 page
|
||||||
};
|
};
|
||||||
|
|
||||||
start;
|
start;
|
||||||
|
|
Loading…
Reference in New Issue