Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if segment_2 != ""}
- {if "movies|books|music" *= segment_2}
- {!-- all is well (there is no "does not contain" directive in EE) --}
- {if:else}
- {!--redirect="404"--}
- {!-- TEMPORARY WORKAROUND--}
- {exp:channel:entries
- channel="resources"
- url_title="does_not_exist"
- disable="categories|category_fields|custom_fields|member_data|pagination"}
- {if no_results } {redirect="404"} {/if}
- {/exp:channel:entries}
- {/if}
- {/if}
- {if {exp:stash:is_empty name="current_category_name"}}
- <?php
- $this->EE->output->set_header("HTTP/1.0 404 Not Found");
- ?>
- {!--redirect="404"--}
- {redirect="error/error-404"}
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement