joedicastro/joedicastro.com/master/site/source/extra/.htaccess - Htaccess File
joedicastro/joedicastro.com/master/site/source/extra/.htaccess
Redirect 301 /joe_di_castro /pages/sobre-mi.html
Redirect 301 /etiquetas /tags.html
Redirect 301 /buscar /archives.html
Redirect 301 /consejos /pages/markdown.html
Redirect 301 /sincronizar_una_carpeta_local_y_una_remota_a_traves_de_ftp_lftp_mirror /sincronizar-una-carpeta-local-y-una-remota-a-traves-de-ftp-lftp-mirror.html
Redirect 301 /optimizar_imagenes_para_la_web /optimizar-imagenes-para-la-web.html
Redirect 301 /ted_talks_descargar_videos_y_subtitulos_de_las_charlas /ted-talks-descargar-videos-y-subtitulos-de-las-charlas.html
Redirect 301 /combatir_el_spam_en_drupal /combatir-el-spam-en-drupal.html
Redirect 301 /python_majibu_preguntas_y_respuestas_sobre_python /python-majibu-preguntas-y-respuestas-sobre-python.html
Redirect 301 /crear_un_arbol_de_directorios_falso_para_entorno_de_pruebas /crear-un-arbol-de-directorios-falso-para-entorno-de-pruebas.html
Redirect 301 /mover_todos_los_archivos_del_mismo_tipo_de_un_arbol_de_directorios_a_la_vez /mover-todos-los-archivos-del-mismo-tipo-de-un-arbol-de-directorios-a-la-vez.html
Redirect 301 /comprobar_si_un_programa_esta_instalado_con_python /comprobar-si-un-programa-esta-instalado-con-python.html
Redirect 301 /python_one_liners_potencia_en_una_sola_linea /python-one-liners-potencia-en-una-sola-linea.html
Redirect 301 /logger_informes_legibles_para_tus_scripts_python /logger-informes-legibles-para-tus-scripts-python.html
Redirect 301 /enviar_un_correo_electronico_con_python /enviar-un-correo-electronico-con-python.html
Redirect 301 /generar_informes_de_cambios_en_paquetes_instalados_en_debian_y_ubuntu /generar-informes-de-cambios-en-paquetes-instalados-en-debian-y-ubuntu.html
Redirect 301 /conocer_el_tamano_de_un_directorio_con_python /conocer-el-tamano-de-un-directorio-con-python.html
Redirect 301 /monitorizar_los_cambios_de_tamano_en_un_directorio /monitorizar-los-cambios-de-tamano-en-un-directorio.html
Redirect 301 /markdown_la_mejor_opcion_para_crear_contenidos_web /markdown-la-mejor-opcion-para-crear-contenidos-web.html
Redirect 301 /aplanar_listas_en_python /aplanar-listas-en-python.html
Redirect 301 /algoritmos_shuffle /algoritmos-shuffle.html
Redirect 301 /notificaciones_de_escritorio_en_ubuntu_desde_python /notificaciones-de-escritorio-en-ubuntu-desde-python.html
Redirect 301 /pages/sobre-mi.html /
Redirect 301 /mailto:joe@joedicastro.com /
Redirect 301 /productividad-en-el-escritorio-linux-twm.html /productividad-en-el-escritorio-linux-tiling.html
Redirect 301 /tag/Pelican.html /tag/pelican.html
Redirect 301 "/tag/TED Talks.html" /tag/ted%20talks.html
# wrong links from external sites
Redirect 410 /productividad
Redirect 410 /combatir-el-spam-en-drupal
Redirect 410 /index2.html
Redirect 410 /index3.html
Redirect 410 /index4.html
Redirect 410 /index5.html
Redirect 410 /index6.html
Redirect 410 /index7.html
Redirect 410 /index8.html
Redirect 410 /index9.html
# old site
Redirect 410 /view
Redirect 410 /photo
Redirect 410 /comment
Redirect 410 /main.php
Redirect 410 /cse
Redirect 410 /A_Coruna
Redirect 410 /Atardeceres
Redirect 410 /B_&_N
Redirect 410 /Caion
Redirect 410 /Castelo_de_Andrade
Redirect 410 /Castelo_Andrade
Redirect 410 /Catoira
Redirect 410 /Chelo
Redirect 410 /Coristanco
Redirect 410 /Faro_Fisterra
Redirect 410 /Fragas_do_Eume
Redirect 410 /Marinan_Pedrido
Redirect 410 /Monte_San_Pedro
Redirect 410 /Muxia
Redirect 410 /QE2
Redirect 410 /San_Andres_de_Teixido
Redirect 410 /Santiago_de_Compostela
Redirect 410 /Serra_da_Capelada
Redirect 410 /Varias
Redirect 410 /Verdes
Redirect 410 /Vilagarcia_de_Arousa
Redirect 410 /tag/A+Coruña
Redirect 410 /tag/Aerogenerador
Redirect 410 /tag/Atardeceres
Redirect 410 /tag/Barcas
Redirect 410 /tag/Barco
Redirect 410 /tag/Betanzos
Redirect 410 /tag/Bodegon
Redirect 410 /tag/B+&+N
Redirect 410 /tag/Caion
Redirect 410 /tag/Castelo+de+Andrade
Redirect 410 /tag/Castillo
Redirect 410 /tag/Catoira
Redirect 410 /tag/Chelo
Redirect 410 /tag/Coristanco
Redirect 410 /tag/Faro
Redirect 410 /tag/Faro+Fisterra
Redirect 410 /tag/Favoritas
Redirect 410 /tag/Fisterra
Redirect 410 /tag/Fragas+do+Eume
Redirect 410 /tag/Galicia
Redirect 410 /tag/Iglesia
Redirect 410 /tag/Monte+San+Pedro
Redirect 410 /tag/Muxia
Redirect 410 /tag/Niebla
Redirect 410 /tag/Parapente
Redirect 410 /tag/Pontedeume
Redirect 410 /tag/Puerto
Redirect 410 /tag/QE2
Redirect 410 /tag/Rio
Redirect 410 /tag/San+Andres+de+Teixido
Redirect 410 /tag/Santiago+de+Compostela
Redirect 410 /tag/Serra+da+Capelada
Redirect 410 /tag/Torre+de+Hércules
Redirect 410 /tag/Verdes
Redirect 410 /tag/Vilagarcia+de+Arousa
Redirect 410 /tag/Yate
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.joedicastro.com$ [NC]
RewriteRule ^(.*)$ http://joedicastro.com/$1 [L,R=301]
RewriteRule ^pictures/(.*) /static/pictures/$1 [R=301,L]
RewriteRule ^ammap/(.*) /static/ammap/$1 [R=301,L]
RewriteRule ^feeds/tags/pictures/(.*) /static/pictures/$1 [R=301,L]
RewriteRule ^etiquetas/(.*) /tag/$1.html [R=301,L]
RewriteRule "(^|/)." - [F]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"
# Your document html
ExpiresByType text/html "access plus 0 seconds"
# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
# RSS feed
ExpiresByType application/rss+xml "access plus 1 hour"
# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# Media: images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
# HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"
# CSS and JavaScript
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
</IfModule>
Options -Indexes
Options +FollowSymLinks
ErrorDocument 403 /access_denied.html
ErrorDocument 404 /notfound.html
<IfModule mod_headers.c>
<FilesMatch ".(js|css|xml|gz)$">
Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>
On Github License
Files