Skip to content

Commit b91bbbd

Browse files
committed
1 parent c08872a commit b91bbbd

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

TaxonomyResults.cfm

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
<cfoutput>
22
<cfif isdefined("full_taxon_name") and len(full_taxon_name) gt 0>
33
<cfset furl="/taxonomy.cfm?taxon_name=#full_taxon_name#">
4+
<cfheader statuscode="301" statustext="Moved permanently">
5+
<cfheader name="Location" value="#furl#">
46
<cfelseif isdefined("genus") and len(genus) gt 0>
57
<cfset furl="/taxonomy.cfm?taxon_term=#genus#&term_type=genus">
8+
<cfheader statuscode="301" statustext="Moved permanently">
9+
<cfheader name="Location" value="#furl#">
610
<cfelse>
7-
<cfset furl="/taxonomy.cfm">
11+
<cfthrow
12+
detail = "TaxonomyResults problem"
13+
errorCode = "90000"
14+
extendedInfo = "soft 404: The page has moved and our redirects are broken. We're fixing it!"
15+
message = "The page has moved and our redirects are broken. We're fixing it!"
16+
>
817
</cfif>
9-
<cfheader statuscode="301" statustext="Moved permanently">
10-
<cfheader name="Location" value="#furl#">
18+
19+
20+
21+
22+
23+
24+
1125
</cfoutput>

0 commit comments

Comments
 (0)