Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine on
- # Block Bad Bots & Scrapers
- SetEnvIfNoCase User-Agent "Aboundex" bad_bot
- SetEnvIfNoCase User-Agent "360Spider" bad_bot
- SetEnvIfNoCase User-Agent "^Java" bad_bot
- SetEnvIfNoCase User-Agent "^Cogentbot" bad_bot
- SetEnvIfNoCase User-Agent "^Alexibot" bad_bot
- SetEnvIfNoCase User-Agent "^asterias" bad_bot
- SetEnvIfNoCase User-Agent "^attach" bad_bot
- SetEnvIfNoCase User-Agent "^BackDoorBot" bad_bot
- SetEnvIfNoCase User-Agent "^BackWeb" bad_bot
- SetEnvIfNoCase User-Agent "Bandit" bad_bot
- SetEnvIfNoCase User-Agent "^BatchFTP" bad_bot
- SetEnvIfNoCase User-Agent "^Bigfoot" bad_bot
- SetEnvIfNoCase User-Agent "^Black.Hole" bad_bot
- SetEnvIfNoCase User-Agent "^BlackWidow" bad_bot
- SetEnvIfNoCase User-Agent "^BlowFish" bad_bot
- SetEnvIfNoCase User-Agent "^BotALot" bad_bot
- SetEnvIfNoCase User-Agent "Buddy" bad_bot
- SetEnvIfNoCase User-Agent "^BuiltBotTough" bad_bot
- SetEnvIfNoCase User-Agent "^Bullseye" bad_bot
- SetEnvIfNoCase User-Agent "^BunnySlippers" bad_bot
- SetEnvIfNoCase User-Agent "^Cegbfeieh" bad_bot
- SetEnvIfNoCase User-Agent "^CheeseBot" bad_bot
- SetEnvIfNoCase User-Agent "^CherryPicker" bad_bot
- SetEnvIfNoCase User-Agent "^ChinaClaw" bad_bot
- SetEnvIfNoCase User-Agent "Collector" bad_bot
- SetEnvIfNoCase User-Agent "Copier" bad_bot
- SetEnvIfNoCase User-Agent "^CopyRightCheck" bad_bot
- SetEnvIfNoCase User-Agent "^cosmos" bad_bot
- SetEnvIfNoCase User-Agent "^Crescent" bad_bot
- SetEnvIfNoCase User-Agent "^Custo" bad_bot
- SetEnvIfNoCase User-Agent "^AIBOT" bad_bot
- SetEnvIfNoCase User-Agent "^DISCo" bad_bot
- SetEnvIfNoCase User-Agent "^DIIbot" bad_bot
- SetEnvIfNoCase User-Agent "^DittoSpyder" bad_bot
- SetEnvIfNoCase User-Agent "^Download\ Demon" bad_bot
- SetEnvIfNoCase User-Agent "^Download\ Devil" bad_bot
- SetEnvIfNoCase User-Agent "^Download\ Wonder" bad_bot
- SetEnvIfNoCase User-Agent "^dragonfly" bad_bot
- SetEnvIfNoCase User-Agent "^Drip" bad_bot
- SetEnvIfNoCase User-Agent "^eCatch" bad_bot
- SetEnvIfNoCase User-Agent "^EasyDL" bad_bot
- SetEnvIfNoCase User-Agent "^ebingbong" bad_bot
- SetEnvIfNoCase User-Agent "^EirGrabber" bad_bot
- SetEnvIfNoCase User-Agent "^EmailCollector" bad_bot
- SetEnvIfNoCase User-Agent "^EmailSiphon" bad_bot
- SetEnvIfNoCase User-Agent "^EmailWolf" bad_bot
- SetEnvIfNoCase User-Agent "^EroCrawler" bad_bot
- SetEnvIfNoCase User-Agent "^Exabot" bad_bot
- SetEnvIfNoCase User-Agent "^Express\ WebPictures" bad_bot
- SetEnvIfNoCase User-Agent "Extractor" bad_bot
- SetEnvIfNoCase User-Agent "^EyeNetIE" bad_bot
- SetEnvIfNoCase User-Agent "^Foobot" bad_bot
- SetEnvIfNoCase User-Agent "^flunky" bad_bot
- SetEnvIfNoCase User-Agent "^FrontPage" bad_bot
- SetEnvIfNoCase User-Agent "^Go-Ahead-Got-It" bad_bot
- SetEnvIfNoCase User-Agent "^gotit" bad_bot
- SetEnvIfNoCase User-Agent "^GrabNet" bad_bot
- SetEnvIfNoCase User-Agent "^Grafula" bad_bot
- SetEnvIfNoCase User-Agent "^Harvest" bad_bot
- SetEnvIfNoCase User-Agent "^hloader" bad_bot
- SetEnvIfNoCase User-Agent "^HMView" bad_bot
- SetEnvIfNoCase User-Agent "^HTTrack" bad_bot
- SetEnvIfNoCase User-Agent "^humanlinks" bad_bot
- SetEnvIfNoCase User-Agent "^IlseBot" bad_bot
- SetEnvIfNoCase User-Agent "^Image\ Stripper" bad_bot
- SetEnvIfNoCase User-Agent "^Image\ Sucker" bad_bot
- SetEnvIfNoCase User-Agent "Indy\ Library" bad_bot
- SetEnvIfNoCase User-Agent "^InfoNaviRobot" bad_bot
- SetEnvIfNoCase User-Agent "^InfoTekies" bad_bot
- SetEnvIfNoCase User-Agent "^Intelliseek" bad_bot
- SetEnvIfNoCase User-Agent "^InterGET" bad_bot
- SetEnvIfNoCase User-Agent "^Internet\ Ninja" bad_bot
- SetEnvIfNoCase User-Agent "^Iria" bad_bot
- SetEnvIfNoCase User-Agent "^Jakarta" bad_bot
- SetEnvIfNoCase User-Agent "^JennyBot" bad_bot
- SetEnvIfNoCase User-Agent "^JetCar" bad_bot
- SetEnvIfNoCase User-Agent "^JOC" bad_bot
- SetEnvIfNoCase User-Agent "^JustView" bad_bot
- SetEnvIfNoCase User-Agent "^Jyxobot" bad_bot
- SetEnvIfNoCase User-Agent "^Kenjin.Spider" bad_bot
- SetEnvIfNoCase User-Agent "^Keyword.Density" bad_bot
- SetEnvIfNoCase User-Agent "^larbin" bad_bot
- SetEnvIfNoCase User-Agent "^LexiBot" bad_bot
- SetEnvIfNoCase User-Agent "^lftp" bad_bot
- SetEnvIfNoCase User-Agent "^libWeb/clsHTTP" bad_bot
- SetEnvIfNoCase User-Agent "^likse" bad_bot
- SetEnvIfNoCase User-Agent "^LinkextractorPro" bad_bot
- SetEnvIfNoCase User-Agent "^LinkScan/8.1a.Unix" bad_bo
- SetEnvIfNoCase User-Agent "^LNSpiderguy" bad_bott
- SetEnvIfNoCase User-Agent "^LinkWalker" bad_bot
- SetEnvIfNoCase User-Agent "^lwp-trivial" bad_bot
- SetEnvIfNoCase User-Agent "^LWP::Simple" bad_bot
- SetEnvIfNoCase User-Agent "^Magnet" bad_bot
- SetEnvIfNoCase User-Agent "^Mag-Net" bad_bot
- SetEnvIfNoCase User-Agent "^MarkWatch" bad_bot
- SetEnvIfNoCase User-Agent "^Mass\ Downloader" bad_bot
- SetEnvIfNoCase User-Agent "^Mata.Hari" bad_bot
- SetEnvIfNoCase User-Agent "^Memo" bad_bot
- SetEnvIfNoCase User-Agent "^Microsoft.URL" bad_bot
- SetEnvIfNoCase User-Agent "^Microsoft\ URL\ Control" bad_bot
- SetEnvIfNoCase User-Agent "^MIDown\ tool" bad_bot
- SetEnvIfNoCase User-Agent "^MIIxpc" bad_bot
- SetEnvIfNoCase User-Agent "^Mirror" bad_bot
- SetEnvIfNoCase User-Agent "^Missigua\ Locator" bad_bot
- SetEnvIfNoCase User-Agent "^Mister\ PiX" bad_bot
- SetEnvIfNoCase User-Agent "^moget" bad_bot
- SetEnvIfNoCase User-Agent "^Mozilla/3.Mozilla/2.01" bad_bot
- SetEnvIfNoCase User-Agent "^Mozilla.*NEWT" bad_bot
- SetEnvIfNoCase User-Agent "^NAMEPROTECT" bad_bot
- SetEnvIfNoCase User-Agent "^Navroad" bad_bot
- SetEnvIfNoCase User-Agent "^NearSite" bad_bot
- SetEnvIfNoCase User-Agent "^NetAnts" bad_bot
- SetEnvIfNoCase User-Agent "^Netcraft" bad_bot
- SetEnvIfNoCase User-Agent "^NetMechanic" bad_bot
- SetEnvIfNoCase User-Agent "^NetSpider" bad_bot
- SetEnvIfNoCase User-Agent "^Net\ Vampire" bad_bot
- SetEnvIfNoCase User-Agent "^NetZIP" bad_bot
- SetEnvIfNoCase User-Agent "^NextGenSearchBot" bad_bot
- SetEnvIfNoCase User-Agent "^NG" bad_bot
- SetEnvIfNoCase User-Agent "^NICErsPRO" bad_bot
- SetEnvIfNoCase User-Agent "^NimbleCrawler" bad_bot
- SetEnvIfNoCase User-Agent "^Ninja" bad_bot
- SetEnvIfNoCase User-Agent "^NPbot" bad_bot
- SetEnvIfNoCase User-Agent "^Octopus" bad_bot
- SetEnvIfNoCase User-Agent "^Offline\ Explorer" bad_bot
- SetEnvIfNoCase User-Agent "^Offline\ Navigator" bad_bot
- SetEnvIfNoCase User-Agent "^Openfind" bad_bot
- SetEnvIfNoCase User-Agent "^OutfoxBot" bad_bot
- SetEnvIfNoCase User-Agent "^PageGrabber" bad_bot
- SetEnvIfNoCase User-Agent "^Papa\ Foto" bad_bot
- SetEnvIfNoCase User-Agent "^pavuk" bad_bot
- SetEnvIfNoCase User-Agent "^pcBrowser" bad_bot
- SetEnvIfNoCase User-Agent "^PHP\ version\ tracker" bad_bot
- SetEnvIfNoCase User-Agent "^Pockey" bad_bot
- SetEnvIfNoCase User-Agent "^ProPowerBot/2.14" bad_bot
- SetEnvIfNoCase User-Agent "^ProWebWalker" bad_bot
- SetEnvIfNoCase User-Agent "^psbot" bad_bot
- SetEnvIfNoCase User-Agent "^Pump" bad_bot
- SetEnvIfNoCase User-Agent "^QueryN.Metasearch" bad_bot
- SetEnvIfNoCase User-Agent "^RealDownload" bad_bot
- SetEnvIfNoCase User-Agent "Reaper" bad_bot
- SetEnvIfNoCase User-Agent "Recorder" bad_bot
- SetEnvIfNoCase User-Agent "^ReGet" bad_bot
- SetEnvIfNoCase User-Agent "^RepoMonkey" bad_bot
- SetEnvIfNoCase User-Agent "^RMA" bad_bot
- SetEnvIfNoCase User-Agent "Siphon" bad_bot
- SetEnvIfNoCase User-Agent "^SiteSnagger" bad_bot
- SetEnvIfNoCase User-Agent "^SlySearch" bad_bot
- SetEnvIfNoCase User-Agent "^SmartDownload" bad_bot
- SetEnvIfNoCase User-Agent "^Snake" bad_bot
- SetEnvIfNoCase User-Agent "^Snapbot" bad_bot
- SetEnvIfNoCase User-Agent "^Snoopy" bad_bot
- SetEnvIfNoCase User-Agent "^sogou" bad_bot
- SetEnvIfNoCase User-Agent "^SpaceBison" bad_bot
- SetEnvIfNoCase User-Agent "^SpankBot" bad_bot
- SetEnvIfNoCase User-Agent "^spanner" bad_bot
- SetEnvIfNoCase User-Agent "^Sqworm" bad_bot
- SetEnvIfNoCase User-Agent "Stripper" bad_bot
- SetEnvIfNoCase User-Agent "Sucker" bad_bot
- SetEnvIfNoCase User-Agent "^SuperBot" bad_bot
- SetEnvIfNoCase User-Agent "^SuperHTTP" bad_bot
- SetEnvIfNoCase User-Agent "^Surfbot" bad_bot
- SetEnvIfNoCase User-Agent "^suzuran" bad_bot
- SetEnvIfNoCase User-Agent "^Szukacz/1.4" bad_bot
- SetEnvIfNoCase User-Agent "^tAkeOut" bad_bot
- SetEnvIfNoCase User-Agent "^Teleport" bad_bot
- SetEnvIfNoCase User-Agent "^Telesoft" bad_bot
- SetEnvIfNoCase User-Agent "^TurnitinBot/1.5" bad_bot
- SetEnvIfNoCase User-Agent "^The.Intraformant" bad_bot
- SetEnvIfNoCase User-Agent "^TheNomad" bad_bot
- SetEnvIfNoCase User-Agent "^TightTwatBot" bad_bot
- SetEnvIfNoCase User-Agent "^Titan" bad_bot
- SetEnvIfNoCase User-Agent "^True_Robot" bad_bot
- SetEnvIfNoCase User-Agent "^turingos" bad_bot
- SetEnvIfNoCase User-Agent "^TurnitinBot" bad_bot
- SetEnvIfNoCase User-Agent "^URLy.Warning" bad_bot
- SetEnvIfNoCase User-Agent "^Vacuum" bad_bot
- SetEnvIfNoCase User-Agent "^VCI" bad_bot
- SetEnvIfNoCase User-Agent "^VoidEYE" bad_bot
- SetEnvIfNoCase User-Agent "^Web\ Image\ Collector" bad_bot
- SetEnvIfNoCase User-Agent "^Web\ Sucker" bad_bot
- SetEnvIfNoCase User-Agent "^WebAuto" bad_bot
- SetEnvIfNoCase User-Agent "^WebBandit" bad_bot
- SetEnvIfNoCase User-Agent "^Webclipping.com" bad_bot
- SetEnvIfNoCase User-Agent "^WebCopier" bad_bot
- SetEnvIfNoCase User-Agent "^WebEMailExtrac.*" bad_bot
- SetEnvIfNoCase User-Agent "^WebEnhancer" bad_bot
- SetEnvIfNoCase User-Agent "^WebFetch" bad_bot
- SetEnvIfNoCase User-Agent "^WebGo\ IS" bad_bot
- SetEnvIfNoCase User-Agent "^Web.Image.Collector" bad_bot
- SetEnvIfNoCase User-Agent "^WebLeacher" bad_bot
- SetEnvIfNoCase User-Agent "^WebmasterWorldForumBot" bad_bot
- SetEnvIfNoCase User-Agent "^WebReaper" bad_bot
- SetEnvIfNoCase User-Agent "^WebSauger" bad_bot
- SetEnvIfNoCase User-Agent "^Website\ eXtractor" bad_bot
- SetEnvIfNoCase User-Agent "^Website\ Quester" bad_bot
- SetEnvIfNoCase User-Agent "^Webster" bad_bot
- SetEnvIfNoCase User-Agent "^WebStripper" bad_bot
- SetEnvIfNoCase User-Agent "^WebWhacker" bad_bot
- SetEnvIfNoCase User-Agent "^WebZIP" bad_bot
- SetEnvIfNoCase User-Agent "Whacker" bad_bot
- SetEnvIfNoCase User-Agent "^Widow" bad_bot
- SetEnvIfNoCase User-Agent "^WISENutbot" bad_bot
- SetEnvIfNoCase User-Agent "^WWWOFFLE" bad_bot
- SetEnvIfNoCase User-Agent "^WWW-Collector-E" bad_bot
- SetEnvIfNoCase User-Agent "^Xaldon" bad_bot
- SetEnvIfNoCase User-Agent "^Xenu" bad_bot
- SetEnvIfNoCase User-Agent "^Zeus" bad_bot
- SetEnvIfNoCase User-Agent "^Zyborg" bad_bot
- # Vulnerability Scanners
- SetEnvIfNoCase User-Agent "Acunetix" bad_bot
- SetEnvIfNoCase User-Agent "FHscan" bad_bot
- # Aggressive Chinese Search Engine
- SetEnvIfNoCase User-Agent "Baiduspider" bad_bot
- # Aggressive Russian Search Engine
- SetEnvIfNoCase User-Agent "Yandex" bad_bot
- <Limit GET POST HEAD>
- Order Allow,Deny
- Allow from all
- # Cyveillance
- deny from 38.100.19.8/29
- deny from 38.100.21.0/24
- deny from 38.100.41.64/26
- deny from 38.105.71.0/25
- deny from 38.105.83.0/27
- deny from 38.112.21.140/30
- deny from 38.118.42.32/29
- deny from 65.213.208.128/27
- deny from 65.222.176.96/27
- deny from 65.222.185.72/29
- Deny from env=bad_bot
- </Limit>
- # BEGIN ANTISPAMBLOG REGISTRATION
- RewriteCond %{HTTP_COOKIE} !^.*97674d05a6fcf467b8e51dc408cd1163.*$
- RewriteRule ^wp-signup.php - [F,L]
- # BEGIN Watermark Hotlinked Images
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{HTTP_REFERER} !^$
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain1.com [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?feeds.feedburner.com/domain1 [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain2.com [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain3.com [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain4.com [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?google.\ [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?facebook.com [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?twitter.com [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?yahoo.\ [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?bing.\ [NC]
- RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?ixquick.com [NC]
- RewriteRule ^(.*\.(png|gif|jpe?g))$ /wp-content/plugins/watermark-hotlinked-images/watermark.php?img=$1 [L]
- </IfModule>
- # BEGIN W3TC Browser Cache
- <IfModule mod_mime.c>
- AddType text/css .css
- AddType text/x-component .htc
- AddType application/x-javascript .js
- AddType application/javascript .js2
- AddType text/javascript .js3
- AddType text/x-js .js4
- AddType text/html .html .htm
- AddType text/richtext .rtf .rtx
- AddType image/svg+xml .svg .svgz
- AddType text/plain .txt
- AddType text/xsd .xsd
- AddType text/xsl .xsl
- AddType text/xml .xml
- AddType video/asf .asf .asx .wax .wmv .wmx
- AddType video/avi .avi
- AddType image/bmp .bmp
- AddType application/java .class
- AddType video/divx .divx
- AddType application/msword .doc .docx
- AddType application/vnd.ms-fontobject .eot
- AddType application/x-msdownload .exe
- AddType image/gif .gif
- AddType application/x-gzip .gz .gzip
- AddType image/x-icon .ico
- AddType image/jpeg .jpg .jpeg .jpe
- AddType application/json .json
- AddType application/vnd.ms-access .mdb
- AddType audio/midi .mid .midi
- AddType video/quicktime .mov .qt
- AddType audio/mpeg .mp3 .m4a
- AddType video/mp4 .mp4 .m4v
- AddType video/mpeg .mpeg .mpg .mpe
- AddType application/vnd.ms-project .mpp
- AddType application/x-font-otf .otf
- AddType application/vnd.oasis.opendocument.database .odb
- AddType application/vnd.oasis.opendocument.chart .odc
- AddType application/vnd.oasis.opendocument.formula .odf
- AddType application/vnd.oasis.opendocument.graphics .odg
- AddType application/vnd.oasis.opendocument.presentation .odp
- AddType application/vnd.oasis.opendocument.spreadsheet .ods
- AddType application/vnd.oasis.opendocument.text .odt
- AddType audio/ogg .ogg
- AddType application/pdf .pdf
- AddType image/png .png
- AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
- AddType audio/x-realaudio .ra .ram
- AddType application/x-shockwave-flash .swf
- AddType application/x-tar .tar
- AddType image/tiff .tif .tiff
- AddType application/x-font-ttf .ttf .ttc
- AddType audio/wav .wav
- AddType audio/wma .wma
- AddType application/vnd.ms-write .wri
- AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
- AddType application/zip .zip
- </IfModule>
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType text/css A31536000
- ExpiresByType text/x-component A31536000
- ExpiresByType application/x-javascript A31536000
- ExpiresByType application/javascript A31536000
- ExpiresByType text/javascript A31536000
- ExpiresByType text/x-js A31536000
- ExpiresByType text/html A3600
- ExpiresByType text/richtext A3600
- ExpiresByType image/svg+xml A3600
- ExpiresByType text/plain A3600
- ExpiresByType text/xsd A3600
- ExpiresByType text/xsl A3600
- ExpiresByType text/xml A3600
- ExpiresByType video/asf A31536000
- ExpiresByType video/avi A31536000
- ExpiresByType image/bmp A31536000
- ExpiresByType application/java A31536000
- ExpiresByType video/divx A31536000
- ExpiresByType application/msword A31536000
- ExpiresByType application/vnd.ms-fontobject A31536000
- ExpiresByType application/x-msdownload A31536000
- ExpiresByType image/gif A31536000
- ExpiresByType application/x-gzip A31536000
- ExpiresByType image/x-icon A31536000
- ExpiresByType image/jpeg A31536000
- ExpiresByType application/json A31536000
- ExpiresByType application/vnd.ms-access A31536000
- ExpiresByType audio/midi A31536000
- ExpiresByType video/quicktime A31536000
- ExpiresByType audio/mpeg A31536000
- ExpiresByType video/mp4 A31536000
- ExpiresByType video/mpeg A31536000
- ExpiresByType application/vnd.ms-project A31536000
- ExpiresByType application/x-font-otf A31536000
- ExpiresByType application/vnd.oasis.opendocument.database A31536000
- ExpiresByType application/vnd.oasis.opendocument.chart A31536000
- ExpiresByType application/vnd.oasis.opendocument.formula A31536000
- ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
- ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
- ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
- ExpiresByType application/vnd.oasis.opendocument.text A31536000
- ExpiresByType audio/ogg A31536000
- ExpiresByType application/pdf A31536000
- ExpiresByType image/png A31536000
- ExpiresByType application/vnd.ms-powerpoint A31536000
- ExpiresByType audio/x-realaudio A31536000
- ExpiresByType image/svg+xml A31536000
- ExpiresByType application/x-shockwave-flash A31536000
- ExpiresByType application/x-tar A31536000
- ExpiresByType image/tiff A31536000
- ExpiresByType application/x-font-ttf A31536000
- ExpiresByType audio/wav A31536000
- ExpiresByType audio/wma A31536000
- ExpiresByType application/vnd.ms-write A31536000
- ExpiresByType application/vnd.ms-excel A31536000
- ExpiresByType application/zip A31536000
- </IfModule>
- <IfModule mod_deflate.c>
- <IfModule mod_headers.c>
- Header append Vary User-Agent env=!dont-vary
- </IfModule>
- AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
- <IfModule mod_mime.c>
- # DEFLATE by extension
- AddOutputFilter DEFLATE js css htm html xml
- </IfModule>
- </IfModule>
- <FilesMatch "\.(css|htc|js|js2|js3|js4|CSS|HTC|JS|JS2|JS3|JS4)$">
- <IfModule mod_headers.c>
- Header set Pragma "public"
- Header append Cache-Control "public"
- Header set X-Powered-By "W3 Total Cache/0.9.3"
- </IfModule>
- </FilesMatch>
- <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
- <IfModule mod_headers.c>
- Header set Pragma "public"
- Header append Cache-Control "public"
- Header set X-Powered-By "W3 Total Cache/0.9.3"
- </IfModule>
- </FilesMatch>
- <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
- <IfModule mod_headers.c>
- Header set Pragma "public"
- Header append Cache-Control "public"
- Header set X-Powered-By "W3 Total Cache/0.9.3"
- </IfModule>
- </FilesMatch>
- # END W3TC Browser Cache
- # BEGIN W3TC Skip 404 error handling by WordPress for static files
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !(robots\.txt|sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?)
- RewriteCond %{REQUEST_FILENAME} \.(css|htc|js|js2|js3|js4|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
- RewriteRule .* - [L]
- </IfModule>
- # END W3TC Skip 404 error handling by WordPress for static files
- # BEGIN WordPress
- RewriteEngine On
- RewriteBase /
- RewriteRule ^index\.php$ - [L]
- # add a trailing slash to /wp-admin
- RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
- RewriteCond %{REQUEST_FILENAME} -f [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^ - [L]
- RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
- RewriteRule ^(.*\.php)$ wp/$1 [L]
- RewriteRule . index.php [L]
- # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement