Como tener URL amigables en Joomla
Escrito por: Hernan
Retomando un poco el CMS joomla que lo tenia abandonado, hoy les voy a mostrar como lograr que joomla muestre url’s amigables, que nos ayudaran mucho en el posicionamiento.
Con este que lograremos, pues que nuestra url pase de esto:
- www.dominio.com/index.php?option=com_content&task=blogsection
A esto:
- www.dominio.com/noticias/url-amigables-joomla.html
Estos dÃas ayudando a Esteban me encontré con ciertos problemas en un componente muy recomendado como es el sh404SEF, por eso decidà usar otro que al final resulto ser muy similar pero sin estos problemas, el JoomSEF.
Primero recuerda activar la opción de URL amigables desde la configuración global de tu joomla (Sitio –> Configuración Global –> Solapa SEO), al hacerlo te pedirá que cambies el nombre del archivo htaccess.txt por el de .htaccess, esto lo haces entrando vÃa FTP.
Ahora si descarga el Artio JoomSEF he instalalo.
Al instalarlo nos da la información necesaria para lograr que funcione correctamente, lo único que debes hacer es reemplazar una sección del código del archivo .htaccess que ubicas al rededor de la linea 66:
########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named ‘content’ or ‘component’ on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section
########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
por esto:
########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named ‘content’ or ‘component’ on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section
########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
Por defecto el componente ya esta activado, asà que solo te faltara configurarle algunos detalle.
Con esto tendrás url amigables que te ayudaran a posicionar mejor tus post en google y demás buscadores.


