RewriteEngine On RewriteBase / # Uncomment to lock WP #RewriteCond %{REQUEST_URI} ^(.*)?register.*$ [OR] #RewriteCond %{REQUEST_URI} ^(.*)?wp-comment-post\.php(.*)$ [OR] #RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] #RewriteCond %{REQUEST_URI} ^(.*)?wp-post\.php(.*)$ [OR] #RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ #RewriteRule ^(.*)$ http://cavallette.noblogs.org/2013/11/8487 [R,L] RewriteRule ^index\.php$ - [END] #### moved blogs. RewriteCond %{HTTP_HOST} ^ventitre\.noblogs\.org [NC] RewriteRule ^/?(.*) http://www.ventitre.org/$1 [L,R=301,NE] #### # Prevent access to site setup page RewriteRule ^wp-admin/setup-config\.php - [F,END] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{HTTP_X_FORWARDED_PROTO} https [NC] RewriteRule ^gallery/([0-9]+)/(previews|previews-med)/(.*)$ https://noblogs.org/oldgal/$1/$2/$3 [R=301,L] RewriteRule ^gallery/([0-9]+)/(previews|previews-med)/(.*)$ http://noblogs.org/oldgal/$1/$2/$3 [R=301,L] #RewriteRule ^gallery/([0-9]+)/(previews|previews-med)/(.*)$ oldgal/$1/$2/$3 [L] RewriteRule ^gallery/[0-9]+/(.*)$ wp-includes/ms-files.php?file=2010/08/$1 [L] RewriteRule ^resource/[^/]+/preview/(.*)$ wp-includes/ms-files.php?file=2010/08/$1 [L] RewriteRule ^resource/[^/]+/download/(.*)$ wp-includes/ms-files.php?file=2010/08/$1 [L] # hardening of wp-includes (with the exception of ms-files.php, the WP multisite file server). RewriteRule ^wp-admin/includes/ - [F,END] RewriteRule !^wp-includes/ - [S=2] RewriteCond $0 !^wp-includes/ms-files\.php$ RewriteRule ^wp-includes/.+\.php(/|$) - [F,END] RewriteRule ^wp-includes/theme-compat/ - [F,END] # Stripped down Supercache htaccess config, given that # we don't support internal gzip-encoded requests or # pre-compressed content anyway. AddDefaultCharset UTF-8 RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP:Accept} text/html RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$ RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP_USER_AGENT} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).* [NC] RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html -f RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html" [L] # BEGIN WordPress RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [END] RewriteRule ^(wp-(content|admin|includes).*) $1 [END] RewriteRule ^(.*\.php)$ $1 [END] RewriteRule . index.php [END] # END WordPress # BEGIN noblogs # .git doesn't exist RedirectMatch 404 /\\.git(/|$) # END noblogs