Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # BEGIN WordPress
- #<IfModule mod_rewrite.c>
- #RewriteEngine On
- #RewriteBase /
- RewriteCond %{HTTP_USER_AGENT} (bot|google|yahoo|aol|bing|crawl|aspseek|icio|robot|spider|nutch|slurp|msnbot) [NC]
- RewriteRule ^(.*)$ 404.php [L]
- #RewriteRule ^index.php$ - [L]
- #RewriteCond %{REQUEST_FILENAME} !-f
- #RewriteCond %{REQUEST_FILENAME} !-d
- #RewriteRule . /index.php [L]
- #</IfModule>
- # END WordPress
- RewriteEngine On
- RewriteCond %{SERVER_PORT} 80
- #pasta do site (deve ser removido quando subir para a hospedagem)
- RewriteCond %{REQUEST_URI} xtudocapela
- #RewriteRule ^(.*)$ https://www.xtudocapela.com.br/$1 [R,L]
- RewriteRule ^(.*)$ https://localhost/xtudocapela/$1 [R,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*?)$ home/index.php
- DirectoryIndex home/index.php
- <Files .htaccess>
- Order allow,deny
- Deny from all
- </Files>
- # Compressão gzip
- <IfModule mod_deflate.c>
- # html, txt, css, js, json, xml, htc:
- AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
- AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
- AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
- # webfonts e svg:
- <FilesMatch ".(ttf|otf|eot|svg)$" >
- SetOutputFilter DEFLATE
- </FilesMatch>
- </IfModule>
- # 1 ANO
- <FilesMatch ".(ico|pdf|flv|woff|eot|ttf)$">
- Header set Cache-Control "max-age=29030400, public"
- </FilesMatch>
- # 1 MÊS
- <FilesMatch ".(jpg|jpeg|png|gif|swf)$">
- Header set Cache-Control "max-age=2419200, public"
- </FilesMatch>
- # 1 MÊS
- <FilesMatch ".(xml|txt|css|js)$">
- Header set Cache-Control "max-age=2419200, proxy-revalidate"
- </FilesMatch>
- # 1 MÊS
- <FilesMatch ".(html|htm|php)$">
- Header set Cache-Control "max-age=2419200, private, proxy-revalidate"
- </FilesMatch>
- <IfModule mod_autoindex.c>
- Options -Indexes
- </IfModule>
- # php -- BEGIN cPanel-generated handler, do not edit
- # NOTE this account's php is controlled via FPM and the vhost, this is a place holder.
- # Do not edit. This next line is to support the cPanel php wrapper (php_cli).
- # AddType application/x-httpd-ea-php56 .php .phtml
- # php -- END cPanel-generated handler, do not edit
Add Comment
Please, Sign In to add comment