Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/08/2015, 09:04
Avatar de lauser
lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 11 años, 5 meses
Puntos: 401
Respuesta: archivo .htaccess para wordpress

Empieza con este y vas probando,,,,,, de momento ganaras velocidad y alguna cosa más. Debes tener los módulos requeridos activados.

Código :
Ver original
  1. RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
  2. RewriteRule .* – [F,L]
  3.  
  4. RewriteEngine On
  5. RewriteBase /
  6. RewriteRule ^index\.php$ - [L]
  7.  
  8. # add a trailing slash to /wp-admin
  9. RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
  10.  
  11. RewriteCond %{REQUEST_FILENAME} -f [OR]
  12. RewriteCond %{REQUEST_FILENAME} -d
  13. RewriteRule ^ - [L]
  14. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  15. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
  16. RewriteRule . index.php [L]
  17.  
  18. <ifModule mod_deflate.c>
  19.   AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
  20.   AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
  21.   AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
  22.   AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
  23.   AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
  24.   AddOutputFilterByType DEFLATE font/truetype font/opentype
  25. </ifModule>
  26.  
  27. <ifModule mod_expires.c>
  28. ExpiresActive On
  29. ExpiresDefault "access plus 300 seconds"
  30. ExpiresByType text/html "access plus 600 seconds"
  31. ExpiresByType image/gif "access plus 604800 seconds"
  32. ExpiresByType image/ico "access plus 604800 seconds"
  33. ExpiresByType image/jpeg "access plus 604800 seconds"
  34. ExpiresByType image/jpg "access plus 604800 seconds"
  35. ExpiresByType image/png "access plus 604800 seconds"
  36. ExpiresByType text/css "access plus 604800 seconds"
  37. ExpiresByType text/javascript "access plus 604800 seconds"
  38. ExpiresByType application/x-javascript "access plus 604800 seconds"
  39. ExpiresByType application/javascript "access plus 604800 seconds"
  40. ExpiresByType application/xhtml+xml "access plus 600 seconds"
  41. </ifModule>
  42.  
  43. <ifModule mod_headers.c>
  44. Header set Connection keep-alive   
  45. <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|svg|swf)$">
  46. Header set Cache-Control "max-age=2592000, public"
  47. </filesMatch>
  48. <filesMatch "\\.(css)$">
  49. Header set Cache-Control "max-age=604800, public"
  50. </filesMatch>
  51. <filesMatch "\\.(js)$">
  52. Header set Cache-Control "max-age=604800, private"
  53. </filesMatch>
  54. <filesMatch "\\.(xml|txt)$">
  55. Header set Cache-Control "max-age=604800, public, must-revalidate"
  56. </filesMatch>
  57. <filesMatch "\\.(html|htm|php)$">
  58. Header set Cache-Control "max-age=1, private, must-revalidate"
  59. </filesMatch>  
  60. </ifModule>
  61.  
  62. Header unset Pragma
  63. Header unset ETag
  64. FileETag None
  65.  
  66. php_flag apc.cache_by_default On
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-