Help for this page

Select Code to Download


  1. or download this
    if (! ($r->uri =~ / special patterns go here /)) {
            $m->redirect('/page-not-found-error.html?p=' .uri_escape($r->u
    +ri));
    }
    
  2. or download this
    ErrorDocument 404 /page-not-found-error.html
    
  3. or download this
    % my $page = uri_unescape($p) ||  $ENV{REDIRECT_URL};
    You were looking for <% $page %> and the server can't find it.
    
  4. or download this
    if ($new) {
     # from http://www.masonhq.com/?FAQ:HTTPAndHTML
    ...
     $r->header_out('Location' => $new);
     $m->abort(301);
    }
    
  5. or download this
    Not Found
    
    The requested URL /login/advanced was not found on this server.
    
    Additionally, a 301 Moved Permanently error was encountered while tryi
    +ng to use an ErrorDocument to handle the request.
    
  6. or download this
     $m->clear_buffer;
     $r->method('GET');
    ...
     $r->content_type('text/html');
     $r->header_out('Location' => $new);
     $m->abort(301);
    
  7. or download this
    The requested URL /login/advanced was not found on this server.
    
    Additionally, a 301 Moved Permanently error was encountered while tryi
    +ng to use an ErrorDocument to handle the request.