File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
<cfoutput >
2
2
<cfif isdefined (" full_taxon_name" ) and len (full_taxon_name ) gt 0 >
3
3
<cfset furl = " /taxonomy.cfm?taxon_name=#full_taxon_name #" >
4
+ <cfheader statuscode =" 301" statustext =" Moved permanently" >
5
+ <cfheader name =" Location" value =" #furl #" >
4
6
<cfelseif isdefined (" genus" ) and len (genus ) gt 0 >
5
7
<cfset furl = " /taxonomy.cfm?taxon_term=#genus #&term_type=genus" >
8
+ <cfheader statuscode =" 301" statustext =" Moved permanently" >
9
+ <cfheader name =" Location" value =" #furl #" >
6
10
<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
+ >
8
17
</cfif >
9
- <cfheader statuscode =" 301" statustext =" Moved permanently" >
10
- <cfheader name =" Location" value =" #furl #" >
18
+
19
+
20
+
21
+
22
+
23
+
24
+
11
25
</cfoutput >
You can’t perform that action at this time.
0 commit comments