.htaccess 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ErrorDocument 403 /error/403.php
  2. ErrorDocument 404 /error/404.php
  3. ErrorDocument 500 /error/500.php
  4. #AddHandler application/x-httpd-php .xml
  5. #AddType application/x-httpd-php .xml
  6. AddType application/x-httpd-php .xml
  7. AddHandler php5-cgi .xml
  8. # <FilesMatch "\.php$">
  9. # Order allow, deny
  10. # Deny from all
  11. # </FilesMatch>
  12. Options +FollowSymlinks
  13. RewriteEngine on
  14. RewriteRule ^sitemap.xml$ /sitemap.php [NC]
  15. RewriteRule ^rss.xml$ /rss.php [NC]
  16. RewriteRule ^blog/buscar/([A-Za-z0-9]+)/([A-Za-z0-9]+)$ /blog/buscar.php?where=$1&query=$2 [NC]
  17. RewriteRule ^blog/buscar/([A-Za-z0-9]+)/([A-Za-z0-9]+)/$ /blog/buscar.php?where=$1&query=$2 [NC]
  18. RewriteRule ^blog/([A-Z\-a-z0-9]{3,}+)$ /blog/post.php?perm=$1 [NC]
  19. RewriteRule ^blog/([A-Z\-a-z0-9]{3,}+)/$ /blog/post.php?perm=$1 [NC]
  20. RewriteRule ^blog/([0-9]+)$ /blog/index.php?o=$1 [NC]
  21. RewriteRule ^blog/([0-9]+)/$ /blog/index.php?o=$1 [NC]
  22. RewriteRule ^lablanca/([0-9]+)$ /lablanca/index.php?year=$1 [NC]
  23. RewriteRule ^actividades/search/([A-Za-z0-9]+)/([A-Za-z0-9]+)$ /actividades/buscar.php?where=$1&query=$2 [NC]
  24. RewriteRule ^actividades/search/([A-Za-z0-9]+)/([A-Za-z0-9]+)/$ /actividades/buscar.php?where=$1&query=$2 [NC]
  25. RewriteRule ^actividades/([A-Z\-a-z0-9{3,}]+)$ /actividades/actividad.php?perm=$1 [NC]
  26. RewriteRule ^actividades/([A-Z\-a-z0-9{3,}]+)/$ /actividades/actividad.php?perm=$1 [NC]
  27. RewriteRule ^actividades/([0-9]+)$ /actividades/index.php?o=$1 [NC]
  28. RewriteRule ^actividades/([0-9]+)/$ /actividades/index.php?o=$1 [NC]
  29. RewriteRule ^ayuda$ /ayuda/index.php [NC]
  30. RewriteRule ^ayuda/$ /ayuda/index.php [NC]
  31. RewriteRule ^galeria/upload$ /galeria/upload.php [NC]
  32. RewriteRule ^galeria/upload/$ /galeria/upload.php [NC]
  33. RewriteRule ^galeria/([A-Z\-a-z0-9{3,}]+)$ /galeria/album.php?perm=$1 [NC]
  34. RewriteRule ^galeria/([A-Z\-a-z0-9{3,}]+)/$ /galeria/album.php?perm=$1 [NC]
  35. RewriteRule ^galeria/([A-Z\-a-z0-9{3,}]+)/([A-Z\-a-z0-9{3,}]+)$ /galeria/photo.php?album=$2&perm=$1 [NC]
  36. RewriteRule ^galeria/([A-Z\-a-z0-9{3,}]+)/([A-Z\-a-z0-9{3,}]+)/$ /galeria/photo.php?album=$2&perm=$1 [NC]
  37. # BEGIN Cache-Control Headers
  38. <IfModule mod_expires.c>
  39. ExpiresActive on
  40. # ExpiresDefault "access plus 1 month"
  41. ExpiresByType application/javascript "access plus 6 days"
  42. ExpiresByType image/x-ico "access plus 12 days"
  43. ExpiresByType image/jpg "access plus 12 days"
  44. ExpiresByType image/jpeg "access plus 12 days"
  45. ExpiresByType image/gif "access plus 12 days"
  46. ExpiresByType image/png "access plus 12 days"
  47. ExpiresByType video/mkv "access plus 12 days"
  48. ExpiresByType text/css "access plus 6 days"
  49. ExpiresByType text/plain "access plus 6 days"
  50. </IfModule>
  51. # BEGIN Cache-Control Headers
  52. <ifModule mod_headers.c>
  53. <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
  54. Header set Cache-Control "max-age=864000, public, must-revalidate"
  55. </filesMatch>
  56. <filesMatch "\.(css)$">
  57. Header set Cache-Control "max-age=864000, public, must-revalidate"
  58. </filesMatch>
  59. <filesMatch "\.(js)$">
  60. Header set Cache-Control "max-age=864000, private, must-revalidate"
  61. </filesMatch>
  62. <filesMatch "\.(x?html?|php)$">
  63. Header set Cache-Control "max-age=86400, private, must-revalidate"
  64. </filesMatch>
  65. </ifModule>
  66. # END Cache-Control Headers
  67. <ifModule mod_deflate.c>
  68. AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
  69. AddOutputFilterByType DEFLATE image/x-icon
  70. AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
  71. AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
  72. AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
  73. AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
  74. AddOutputFilterByType DEFLATE font/truetype font/opentype
  75. </ifModule>
  76. # Enable memory caching
  77. #CacheEnable mem /
  78. # Limit the size of the cache to 1 Megabyte
  79. #MCacheSize 1024
  80. #CacheFile footer.php toolbar.php img/*/* project/*/render/* project/*/render/*/preview/* project/*/render/*/miniature/*