Skip to content

Instantly share code, notes, and snippets.

@FranciscoHV
Created November 2, 2016 14:49
Show Gist options
  • Save FranciscoHV/62550972793ad111e2b6af3ba64014c2 to your computer and use it in GitHub Desktop.
Save FranciscoHV/62550972793ad111e2b6af3ba64014c2 to your computer and use it in GitHub Desktop.
Htaccess jaimiko
SetEnv PHPRC /home/mineclas/public_html/php.ini
# 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
AddHandler application/x-httpd-php56 .php .php5 .php4 .php3
RewriteCond %{HTTP_HOST} ^mine\-class\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mine\-class\.com$
RewriteRule ^wp\-admin\/$ "http\:\/\/mine\-class\.com\/course\/emprende\-en\-mineria\-gratis\/" [R=301,L]
## ENABLE GZIP COMPRESSION ##
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
## ENABLE GZIP COMPRESSION ##
## LEVERAGE BROWSER CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## LEVERAGE BROWSER CACHING ##
Options All -Indexes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment