Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Created January 26, 2014 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szepeviktor/8637299 to your computer and use it in GitHub Desktop.
Save szepeviktor/8637299 to your computer and use it in GitHub Desktop.
MJ12bot WordPeess helper rule - adds trailing slash
## 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