Project

General

Profile

Actions

Bug #3911

closed

Old cgi-bin references are still being rendered by 1.8.1 registry code

Added by Shaun Walbridge almost 16 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
registry
Target version:
Start date:
03/20/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3911

Description

References to http://knb.ecoinformatics.org/cgi-bin/ should be redirected to their new and permanent home at /knb/cgi-bin/. This should be easy as the following rewrite rule:

RewriteRule ^/cgi-bin/(.*) http://knb.ecoinformatics.org/knb/cgi-bin/$1 [L,R=301]

Test this on dev, and pending no unforeseen consequences deploy to KNB.

Actions #1

Updated by Matt Jones almost 16 years ago

This type of a redirect will simply shield the actual URI problem in the source. Can't we find these problems and fix them? If we don't, then people at other sites that install it will likely run into problems when the URLs don't work for them without the redirects.

Actions #2

Updated by Shaun Walbridge almost 16 years ago

The URLs in the pages themselves (e.g. the 'Registry' link from the NCEAS skin) will work fine, only preexisting references are affected. This has been tested and works fine on dev, the following lines were added:

RewriteEngine   On
RewriteLog "/var/log/httpd/rewrite_log"
RewriteLogLevel 5
RewriteRule ^/cgi-bin/(.*) http://dev.nceas.ucsb.edu/knb/cgi-bin/$1 [L,R=301]

Additionally, the ScriptAlias and <Directory> blocks for the old /cgi-bin/ reference were removed.

Actions #3

Updated by Redmine Admin almost 12 years ago

Original Bugzilla ID was 3911

Actions #4

Updated by ben leinfelder over 11 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF