Hi,
my URL-structure is like:
domain.com/schule/1s/entrytitle
or
domain.com/schule/1s/entrytitle/entrynumber
If you try this, you will see a normal, correctly rendered page: http://www.lehrerfreund.de/schule/1s/lehrer-gehalt-schweiz/4211
For some unknown reason Users come from Google with an URL where the last slash is missing, that means: http://www.lehrerfreund.de/schule/1s/lehrer-gehalt-schweiz4211
This URL generates a malformed page: The content (= the article) contains just an
{/if}and the headline to enter a comment (see attachment).
Is there any way to fix this? I mean to redirect to 404 in such cases or something similar.
I already have a 404-redirect in my single-entry-template, but this does not work in this case:
{exp:channel:entries channel="{my_channel}" ..........
{if no_results OR segment_5!=""}{redirect="schule/404"}{/if}Thanks in advance!