NCEAS / metacat

Data repository software that helps researchers preserve, share, and discover data
https://knb.ecoinformatics.org/software/metacat
GNU General Public License v2.0
25 stars 12 forks source link

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

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Shaun Walbridge (Shaun Walbridge) Original Redmine Issue: 3911, https://projects.ecoinformatics.org/ecoinfo/issues/3911 Original Date: 2009-03-20 Original Assignee: Shaun Walbridge


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.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Matt Jones (Matt Jones) Original Date: 2009-03-20T22:33:33Z


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.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Shaun Walbridge (Shaun Walbridge) Original Date: 2009-03-21T00:19:22Z


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 blocks for the old /cgi-bin/ reference were removed.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:24:57Z


Original Bugzilla ID was 3911