forked from ArctosDB/arctos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaxonomyResults.cfm
More file actions
25 lines (18 loc) · 794 Bytes
/
TaxonomyResults.cfm
File metadata and controls
25 lines (18 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<cfoutput>
<cfif isdefined("full_taxon_name") and len(full_taxon_name) gt 0>
<cfset furl="/taxonomy.cfm?taxon_name=#full_taxon_name#">
<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="#furl#">
<cfelseif isdefined("genus") and len(genus) gt 0>
<cfset furl="/taxonomy.cfm?taxon_term=#genus#&term_type=genus">
<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="#furl#">
<cfelse>
<cfthrow
detail = "TaxonomyResults problem"
errorCode = "90000"
extendedInfo = "soft 404: The page has moved and our redirects are broken. We're fixing it!"
message = "The page has moved and our redirects are broken. We're fixing it!"
>
</cfif>
</cfoutput>