iamandrebulatov/Profile/master/Post-Hack/2/public_html/thinkinglimoCOM/.htaccess - Htaccess File

iamandrebulatov/Profile/master/Post-Hack/2/public_html/thinkinglimoCOM/.htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# BEGIN Andre Custom .htaccess

# CHARSET DECLARATION
AddType text/html;charset=UTF-8 html

# INDEXING
Options +Indexes

# 401, 402, 403, 404 AND 500 ERROR PAGE REDIRECT
#ErrorDocument 401 /errordocument/401.html
#ErrorDocument 402 /errordocument/402.html
#ErrorDocument 403 /errordocument/403.html
#ErrorDocument 404 /errordocument/404.html
#ErrorDocument 500 /errordocument/500.html

#EXPIRATION RULES
<IfModule mod_expires.c>

# Enable expirations
ExpiresActive On

# Default directive
ExpiresDefault "access plus 1 month"

# My favicon
ExpiresByType image/x-icon "access plus 1 week”

# HTML
ExpiresByType text/html "access plus 1 day"

# Images
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"

# CSS
ExpiresByType text/css "access 1 week”

# Javascript
ExpiresByType application/javascript "access plus 1 week"

</IfModule>

# DISABLE E-TAGS
Header unset ETag
FileETag None

# ENABLE FILE COMPRESSION
<FilesMatch ".(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>

# 301 REDIRECT WWW to NON-WWW
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.thinkinglimo.com [NC]
RewriteRule ^(.*)$ http://thinkinglimo.com/$1 [L,R=301]

# 301 REDIRECT NON-WWW TO WWW
#RewriteCond %{HTTP_HOST} ^thinkinglimo.com [NC]
#RewriteRule ^(.*)$ http://www.thinkinglimo.com/$1 [L,R=301]

# 301 REDIRECT ANY VERSION OF DEFAULT HOME PAGE TO NUDE DOMAIN NAME
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /([^/]+/)*(default|index).(html|php|htm) HTTP/ [NC]
RewriteRule ^(([^/]+/)*)(default|main|index).(html|php|htm)$ http://thinkinglimo.com/$1 [L,R=301]

# 301 REDIRECT A SINGLE PAGE URL TO ANOTHER URL
#Redirect 301 /retiredpage.html http://www.xyz.com/newpage.html

# 301 REDIRECT A DIRECTORY URL AND ALL OF ITS CONTENTS TO ANOTHER
#RedirectMatch 301 ^/oldname/ http://www.xyz.com/newname/

# 301 REDIRECT A DOMAIN NAME URL TO ANOTHER DOMAIN NAME URL
#RedirectMatch 301 ^(.*)$ http://www.xyz.com

# REDIRECT TABLE WWW. TO MOBILE M. SITE
#RewriteCond %{HTTP_HOST} ^onecalllimousine.com [NC]
#RewriteCond %{HTTP_USER_AGENT} "android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
#RewriteRule ^(.*)$ http://m.onecalllimousine.com/$1 [L,R=302]

# CANONICAL HTTP HEADERS
# <Files "file.pdf">
#   Header add Link "<http://www.example.com/page.html>; rel="canonical""
# </Files>

# wp-config.php REDIRECTION to scary domain
# Redirect 301 /wp-config.php http://scary.domain.gov.ru/honeyd

# END Andre Custom .htaccess
#ru/honeyd

# END Andre Custom .htaccess

On Github License

Files

Download PDF of Htaccess file
DEFLATE, HTTP_HOST, HTTP_USER_AGENT, REQUEST_FILENAME, THE_REQUEST

Comments

Apache