Skip to content

Instantly share code, notes, and snippets.

@fidlerryan
Last active February 25, 2019 16:27
Show Gist options
  • Save fidlerryan/033b793289f0ee669932e6ec28278ce3 to your computer and use it in GitHub Desktop.
Save fidlerryan/033b793289f0ee669932e6ec28278ce3 to your computer and use it in GitHub Desktop.
Joomla 2-uncategorised redirects
// Apache
RewriteCond %{QUERY_STRING} ^$
RewriteRule (^|/)2-uncategorised$ /404 [R=301,L]
// IIS
<rule name="Joomla! Uncategorised Rule" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAny">
<add input="{URL}" pattern="(^|/)2-uncategorised$" ignoreCase="false" />
</conditions>
<action type="Redirect" url="/404" redirectType="Permanent" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment