Created
January 26, 2014 18:40
-
-
Save szepeviktor/8637299 to your computer and use it in GitHub Desktop.
MJ12bot WordPeess helper rule - adds trailing slash
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
## MJ12bot WordPeess helper rule | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_USER_AGENT} MJ12bot | |
RewriteCond %{REQUEST_URI} !/$ | |
RewriteCond %{REQUEST_URI} !\. | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ $1/ [L,R=permanent] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment