Changeset 1673

Show
Ignore:
Timestamp:
02/16/05 18:20:52 (3 years ago)
Author:
whmoseley
Message:

And make the redirect script work on sunsite.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swish_website/etc/spider.config

    r1612 r1673  
    3737 
    3838            return 0 if $path =~ m!/archive/!;  # don't index the list archive again 
     39            return 0 if $path =~ m!/search_archive/!;  # and the old search script 
    3940 
    4041            # Don't follow any links above the base_url 
  • trunk/swish_website/src/404.html

    r1672 r1673  
    1515    # Look for possible redirects 
    1616 
    17     if ( $_ = $ENV{REDIRECT_SCRIPT_URI} ) { 
     17    if ( $_ = $ENV{REDIRECT_SCRIPT_URI} || $ENV{REDIRECT_URL} ) { 
    1818        redirect($_) if s[/Download][/download]; 
    19         redirect($_) if s[/Discussion/archive][/archve]; 
    20         redirect($_) if s[/Discussion/?.+$][/discuss.html]; 
     19        redirect($_) if s[/Discussion/archive][/archive]; 
     20        redirect($_) if s[/Discussion/search/][/search_archive]; 
     21        redirect($_) if s[/Discussion/?.*$][/discuss.html]; 
     22 
     23        redirect("/docs/" . lc( $1 ) . $2) if m[/current/docs/(.+)(\.html.*)$]; 
    2124        redirect($_) if s[/current/docs][/docs]; 
    2225        redirect($_) if s[/dev/docs/?][/devel/devel_docs/]; 
     
    4144    }; 
    4245 
     46    $vars->{rooturl} = '' if $vars->{rooturl} eq '/'; 
     47 
    4348 
    4449    my $template = Template->new( $tt_options ) || die Template->error; 
  • trunk/swish_website/src/discuss.html

    r1636 r1673  
    3636 
    3737    <blockquote> 
    38         <form method="get" action="/Discussion/search/swish.cgi" enctype= 
     38        <form method="get" action="/search_archive/swish.cgi" enctype= 
    3939        "application/x-www-form-urlencoded" class="form"> 
    4040