Last active
February 25, 2019 16:27
-
-
Save fidlerryan/033b793289f0ee669932e6ec28278ce3 to your computer and use it in GitHub Desktop.
Joomla 2-uncategorised redirects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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