Clicky

Configuración SEO de Joomla 3.x

joomla SEO

Prepara tu página para mejorar la presencia en los motores de búsqueda

Si has comenzado con una instalación de Joomla! por defecto, debes preparar tu página de Joomla para la mejor optimización de motores de búsqueda. Este tutorial te guiará con 8 pasos. En tan sólo 4 minutos tu sitio estará listo para ser rastreado por Google.

1. Cambiar el nombre del archivo htaccess.txt a .htaccess

Tienes que cambiar este archivo para permitir la reescritura de URLs y tener URLs amigables para los motores de búsqueda.

Se puede cambiar el nombre de este archivo a través de la consola:

Escribe:

# mv /ruta-al-archivo-htacces.txt/htaccess.txt .htaccess

También se puede renombrar a través de FTP, CPanel o Webmin.

Una vez lo tengas renombrado lo editas y dejas esta configuración básica que yo recomiendo:

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
# Options +FollowSymLinks

# Protegiendo el mismo fichero htaccess
<files .htaccess>
order allow,deny
deny from all
</files>

## Mod_rewrite in use.

RewriteEngine On

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

2. Habilitar URLs amigables

Haz tus enlaces legibles y que tengan sentido para ambos, motores de búsqueda y humanos:

urls amigables en Joomla

3. Deja que Google acceda a tus imágenes

Cuando esté lista la optimización de imágenes, se debe permitir a Google que indexe nuestras imágenes y otros archivos para la optimiación de móviles. Dejo un ejemplo del archivo robots.txt :

User-agent: *
Disallow: /administrator/
# Disallow: /cache/
Disallow: /cli/
# Disallow: /components/
# Disallow: /includes/
# Disallow: /images/
Disallow: /language/
# Disallow: /libraries/
Disallow: /logs/
# Disallow: /media/
# Disallow: /modules/
# Disallow: /plugins/
# Disallow: /templates/
Disallow: /tmp/

Allow: *.css
Allow: *.js
Allow: /templates/
Allow: /media/
Allow: /tenemos-que-apanar/
Allow: /plugins/

User-agent: Mediapartners-Google
Disallow:

User-agent: Googlebot-Image
Disallow:

Sitemap: http://www.xn--apaados-6za.es/sitemap.xml

Notas:
•  A partir de la actualización a Joomla 3.3, la línea "Disallow: /images/" se retira del robots.txt
•  Las líneas con un "#" delante no serán leídas y se permitirá acceder a los rastradores.

4. Uso de encabezamientos H1 en lugar de H2

Joomla por defecto establece el título como etiqueta H2. Debe ser etiqueta H1 para el mejor desempeño de SEO. Así que es mejor poner H1 en lugar de H2. Hay varias maneras de hacer esto:

•  Ocultar el título de la página + añade H1 en el HTML: Puedes ocultar el título de la página y establecer el título como H1 en el contenido.

•  Utiliza la extensión Header tags: Esta extensión te ayudará a cambiar la etiqueta H2 a H1 con sólo unos clics.

•  Mira nuestro artículo: Cambiar en Joomla títulos de artículos de H2 a H1

5. Utiliza los atributos Alt y title en las imágenes

Los textos en las etiquetas Alt y title son "leídos" por Google y Bing por lo que son muy importantes y hay que actualizarlos. La mejor manera de optimizar las etiqueta Alty title es: Utilizar un texto descriptivo que ayude a los visitantes a comprender que muestra la imagen, con la palabra clave incluida.

6. Redirigir sin www a www

Esta es una de las cosas más importantes que debes hacer para evitar duplicación de URLs. Es muy fácil de configurar la redirección en el archivo .htaccess con este:

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^site.com [NC]
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301]

7. Administrar etiquetas meta

Meta Título y Meta Descripción son 2 cosas se muestran en las búsquedas para atraer a los cliente. Así que debes escribirlas de una manera interesante; incluyendo la palabra clave tendrás fácilmente un rango más alto y se destacará entre la multitud.

8. Activar Gzip

Gzip es la herramienta eficaz para la compresión de archivos. Reduce el tamaño del archivo en aproximadamente 50% y ayuda a reducir el tiempo de respuesta del servidor.

Para habilitar Gzip en Joomla! CMS, diríjete a Configuración global> Servidor y haz clic en la opción "Sí" para la compresión Gzip:

habilitar gzip en Joomla

Jesus_Caceres