sergeyoleynik/wordpressmaster/master/.htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !.(gif|jpe?g|png|svg)$ /index.php [L]
# Load files from production if they're not in local version
RewriteCond %{REMOTE_ADDR} ::1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^wp-content/uploads/(.*) {WEBSITE_ADDRESS}/wp-content/uploads/$1 [NC,L]
RewriteRule ^wp-content/uploads/(.*) /wp-content/themes/wordpressmaster/no-image.png [NC,L]
</IfModule>
# END WordPress msaer
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
#Prevent Access Git to git repo
RedirectMatch 404 /.git
# MAINTENANCE PAGE REDIRECT
# <IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteBase /
# RewriteRule ^index.php$ - [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule . /index.php [L]
# RewriteCond %{REMOTE_ADDR} !^1.1.1.1
# RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
# RewriteCond %{REQUEST_URI} !.(jpe?g?|png|gif|woff|css|svg) [NC]
# RewriteRule .* /maintenance.html [R=302,L]
# </IfModule>
On Github License
Files