Handling 404 errors

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Handling 404 errors

Hugo <Nabble>
I need a way to redirect visitors (301 permanent redirect) to my homepage whenever they visit a page that doesn't exist. This is particularly important for expired domain names because we want to keep the pagerank from random links across the web and also bring those visitors to the main page.
Reply | Threaded
Open this post in threaded view
|

Re: Handling 404 errors

fschmidt
Administrator
In rev a8d03e6882c6 I added code that will call site:/not_found when a request isn't handled.  Here is an example:

not_found.luan

I haven't implemented this in LuanHost yet.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Handling 404 errors

Hugo <Nabble>
This works great, thanks.

I am closing this thread.
Reply | Threaded
Open this post in threaded view
|

Re: Handling 404 errors

fschmidt
Administrator
I updated LuanHost.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture