Guest User

Untitled

a guest
Feb 22nd, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. # BEGIN WordPress
  2.  
  3. #<IfModule mod_rewrite.c>
  4.  
  5. #RewriteEngine On
  6.  
  7. #RewriteBase /
  8.  
  9. RewriteCond %{HTTP_USER_AGENT} (bot|google|yahoo|aol|bing|crawl|aspseek|icio|robot|spider|nutch|slurp|msnbot) [NC]
  10.  
  11. RewriteRule ^(.*)$ 404.php [L]
  12.  
  13. #RewriteRule ^index.php$ - [L]
  14.  
  15. #RewriteCond %{REQUEST_FILENAME} !-f
  16.  
  17. #RewriteCond %{REQUEST_FILENAME} !-d
  18.  
  19. #RewriteRule . /index.php [L]
  20.  
  21. #</IfModule>
  22.  
  23.  
  24.  
  25. # END WordPress
  26.  
  27.  
  28.  
  29. RewriteEngine On
  30.  
  31. RewriteCond %{SERVER_PORT} 80
  32.  
  33. #pasta do site (deve ser removido quando subir para a hospedagem)
  34. RewriteCond %{REQUEST_URI} xtudocapela
  35.  
  36. #RewriteRule ^(.*)$ https://www.xtudocapela.com.br/$1 [R,L]
  37.  
  38. RewriteRule ^(.*)$ https://localhost/xtudocapela/$1 [R,L]
  39.  
  40.  
  41.  
  42. RewriteCond %{REQUEST_FILENAME} !-f
  43.  
  44. RewriteCond %{REQUEST_FILENAME} !-d
  45.  
  46. RewriteRule ^(.*?)$ home/index.php
  47.  
  48.  
  49.  
  50. DirectoryIndex home/index.php
  51.  
  52.  
  53.  
  54. <Files .htaccess>
  55.  
  56. Order allow,deny
  57.  
  58. Deny from all
  59.  
  60. </Files>
  61.  
  62.  
  63.  
  64. # Compressão gzip
  65.  
  66. <IfModule mod_deflate.c>
  67.  
  68.  
  69.  
  70. # html, txt, css, js, json, xml, htc:
  71.  
  72. AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
  73.  
  74. AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
  75.  
  76. AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
  77.  
  78.  
  79.  
  80. # webfonts e svg:
  81.  
  82. <FilesMatch ".(ttf|otf|eot|svg)$" >
  83.  
  84. SetOutputFilter DEFLATE
  85.  
  86. </FilesMatch>
  87.  
  88.  
  89.  
  90. </IfModule>
  91.  
  92.  
  93.  
  94. # 1 ANO
  95.  
  96. <FilesMatch ".(ico|pdf|flv|woff|eot|ttf)$">
  97.  
  98. Header set Cache-Control "max-age=29030400, public"
  99.  
  100. </FilesMatch>
  101.  
  102. # 1 MÊS
  103.  
  104. <FilesMatch ".(jpg|jpeg|png|gif|swf)$">
  105.  
  106. Header set Cache-Control "max-age=2419200, public"
  107.  
  108. </FilesMatch>
  109.  
  110. # 1 MÊS
  111.  
  112. <FilesMatch ".(xml|txt|css|js)$">
  113.  
  114. Header set Cache-Control "max-age=2419200, proxy-revalidate"
  115.  
  116. </FilesMatch>
  117.  
  118. # 1 MÊS
  119.  
  120. <FilesMatch ".(html|htm|php)$">
  121.  
  122. Header set Cache-Control "max-age=2419200, private, proxy-revalidate"
  123.  
  124. </FilesMatch>
  125.  
  126. <IfModule mod_autoindex.c>
  127.  
  128. Options -Indexes
  129.  
  130. </IfModule>
  131.  
  132. # php -- BEGIN cPanel-generated handler, do not edit
  133. # NOTE this account's php is controlled via FPM and the vhost, this is a place holder.
  134. # Do not edit. This next line is to support the cPanel php wrapper (php_cli).
  135. # AddType application/x-httpd-ea-php56 .php .phtml
  136. # php -- END cPanel-generated handler, do not edit
Add Comment
Please, Sign In to add comment