Forum Moderators: phranque
<FilesMatch /?m=any&q=|/?m=any=|/index.php?s=|/?m=any&q=1|/wp-login|/fckeditor>
order allow,deny
deny from all
</FilesMatch> RewriteCond %{QUERY_STRING} ^m\=any$- [F]
RewriteCond %{QUERY_STRING} ^m\=any$- [F]
RewriteRule ^ - [F] RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*(wp-login).* [NC]
RewriteRule ^(.*)$ - [F,L] RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/|fckeditor).* [NC]
RewriteRule .* - [F,NS,L] <FilesMatch /?m=any&q=|/?m=any=|/index.php?s=|/?m=any&q=1|/wp-login|/fckeditor>
RewriteCond %{QUERY_STRING} ^m\=any$- [F]
RewriteCond %{THE_REQUEST} ^.*(wp-login).* [NC]
RewriteRule ^(.*)$ - [F,L]
RewriteRule wp-login - [F] RewriteCond %{THE_REQUEST} ^.*(wp-login).* [NC]
RewriteCond %{THE_REQUEST} ^.*(fckeditor).* [NC]
RewriteRule ^(.*)$ - [F,L] RewriteRule wp-login - [F] for some strange reason (and in contrast to the 500 error yesterday), a cms produced 404 error is served for uris containing wp-login or fckeditor which is what I am trying to avoid.
With and without the rules the server logs show a 404 which I know that it is served by the cms from the page that appears.
RewriteRule . /index.php [L] RewriteRule ^wp-admin/ - [R=404] Any valid HTTP response status code may be specified, using the syntax [R=305], with a 302 status code being used by default if none is specified. The status code specified need not necessarily be a redirect (3xx) status code. However, if a status code is outside the redirect range (300-399) then the substitution string is dropped entirely, and rewriting is stopped as if the L were used.
^wp-admin/ - [R=404]
^fckeditor - [R=404] RewriteCond %{QUERY_STRING} ^m\=any$- [NC]
RewriteCond %{QUERY_STRING} ^m\=any\&q=1$- [NC]
RewriteRule ^ - [F] RewriteCond %{QUERY_STRING} \bm=any\b [NC]
RewriteRule ^ - [F] (^|&) (before) and ($|&) (after) RewriteRule (^|/|\.html)$ - [F] ^fckeditor - [R=404]