...
Como puede ver en el segundo ejemplo anterior, tanto las categorías como los productos pueden tener una URL amigable: id_category=2
se convierte en 2-music-players
, y id_product=27
se convierte en 27-ipod-nano-green
. Aunque el número ID no puede ser eliminado de forma predeterminada, las palabras son generadas a partir del nombre de la categoría y el nombre del producto, o escritas manualmente. Esto se realiza directamente en la página de configuración del producto o categoría (en el menú "Catálogo"): encontrará el campo "URL amigable" en la página principal de configuración de una categoría, y en la pestaña "SEO" de la página de configuración de un producto.
There are other individual pages in your PrestaShop install that would certainly benefit from friendly URLs: CMS pages, user account pages, pages with automatically generated content... The "SEO & URLs" page presents you with a list of these pages, and enables you to edit their friendly URLs as well as their meta tags Hay otras páginas individuales en su instalación de PrestaShop que sin duda se beneficiarán de las URLs amigables: páginas CMS, páginas de la cuenta de usuario, páginas con contenidos generados automáticamente... La página "SEO y URLs" le presenta un listado de todas esas páginas, y le permite editar sus URLs amigables, así como sus etiquetas meta (title, description, keyword).
Warning |
---|
Friendly URLs only work with a server setup that supports URL rewriting (through the Apache Web Server |
Info | ||
---|---|---|
| ||
In order to change the homepage meta tags, you simply need to open the "SEO & URLs" page, open the "index" page's settings, and there you can freely edit some important SEO information. A few tips:
Note that if your store has already been indexed by Google or any other search engine, it might take a while for your changes to appear in the search results. Please be patient. |
At the bottom of the "SEO & URLs" page are three sections with additional options: Set up URLs, Set shop URL and Robots file generation. See below for an explanation of these.
Adding a New Friendly URL
Friendly URLs are to be set in the configuration page of each product, category, CMS page... This creation page is only useful for some automatic pages, and most of the time you won't have to worry about these.
Tip |
---|
Make sure to fill the fields for all the available languages on your shop: not only is it immensely useful to local users, but some search engines can even make use of this local information. |
Click the "Add New" button to reach the friendly URL creation form. It has a handful of fields:
- Page. The drop-down list gives you all the pages that can benefit from a friendly URL.
- Page title. The title that will appear in search engines when a request is made.
- Meta description. A presentation of the page in just a few words, intended to capture a customer's interest. It will appear in search results.
- Meta Keywords. Keywords that you must define in order to have your site referenced by search engines. You can enter several of them: type the words, press the Return key, and see how the tag gets encapsulated in a yellow block, with a tiny cross icon to delete it.
- Rewritten URL. This is where you set the friendly URL. Make it short and descriptive, use only letters and numbers, and replace spaces (" ") by hyphens ("-").
Set up URLs
The main options for friendly URLs:
...
Friendly URL. Change this option if you know that your server can support URL rewriting. If not, leave it at "No".
Note |
---|
You may see a message such as "URL rewriting (mod_rewrite) is not active on your server or it is not possible to check your server configuration. If you want to use Friendly URLs you must activate this mod". In this case, PrestaShop cannot detect your server settings, but that does not mean the feature will not work. You must test it yourself. |
...
| |
Para modificar las etiquetas meta de su página de inicio, tan sólo necesita abrir la página "SEO y URLs", hacer clic en la página "index" y editar la información SEO. Algunos consejos:
Tenga en cuenta que si su tienda ya ha sido indexada por Google o cualquier otro buscador, tomará algún tiempo que sus cambios aparezcan en los resultados de búsqueda. Por favor, sea paciente. |
En la parte inferior de la página "SEO y URLs" hay tres secciones con opciones adicionales: Configuración de las URLs, Establecer URL de la tienda y Generar archivo robots.txt. Más abajo encontrará una explicación de estas opciones.
Añadir una nueva URL amigable
Las URL amigables se han de establecer en la página de configuración de cada producto, categoría, página CMS... Esta página de creación tan solamente es útil para algunas páginas automáticas, así que por generalmente no tendrá que preocuparse de esta opción.
Tip |
---|
Asegúrese de rellenar los campos para todos los idiomas disponibles en su tienda: no sólo es inmensamente útil para los usuarios locales, sino también para los buscadores que pueden hacer uso de esta información local. |
Haga clic en el botón "Añadir nuevo" para acceder al formulario de creación de URLs amigables. Estos son los campos que tendrá que rellenar:
- Página. La lista desplegable le ofrece un listado de todas aquellas páginas que pueden beneficiarse de una URL amigable.
- Título de la página. El título que aparecerá en buscadores cuando se realice una solicitud.
- Meta descripción. Una presentación de la página, en pocas palabras, la intención de captar el interés de un cliente. Aparecerá en los resultados de búsqueda.
- Meta palabras clave. Palabras clave que definan a la página. Éstas son importantes para un buen posicionamiento en los buscadores. Puede introducir varias: teclee la palabra, pulse la tecla Enter, y observará cómo la etiqueta queda encapsulada en el interior de un bloque amarillo, acompañada de un pequeño icono de una cruz de color rojo por si desea eliminarla.
- Reescritura URL. Aquí es donde debe establecer la URL amigable. Asegúrese que esta sea corta y descriptiva, y reemplace los espacios (" ") por guiones ("-").
Configurar URLs
Las opciones principales para las URLs amigables:
URL amigable. Cambie esta opción si sabe que su servidor permite la reescritura URL. Si no, déjela en "No".
Note Si lee un mensaje como "La reescritura URL (mod_rewrite) no está activa en su servidor o no es posible comprobar la configuración del servidor. Si desea utilizar URLs amigables debe activar este módulo". En este caso, PrestaShop no puede detectar la configuración del servidor, pero eso no significa que está característica no funcione. Deberá comprobarlo por sí mismo.
- URL acentuada. PrestaShop es ahora capaz de producir URLs con caracteres especiales, para los productos con nombres no ASCII. Puede desactivar esta opción desde aquí.
- Redirigir automáticamente al enlace principal (URL canónica). Una página PrestaShop específica puede tener muchas direcciones URLs, con mayor frecuencia cuando hay parámetros a tener en cuenta: por ejemplo,
http://example.com/product.php?id=5&option1
and yhttp://example.com/product.php?id=5&option2
point to the very same product, only one difference. Since you want your product to have a single URL and not many duplicate ones, you should enable Canonical URLs.
Canonical URLs are a way to eliminate self-created duplicate content – which can dramatically bring your search engine rank down, as this is considered spam. To avoid search engines thinking you are spamming their index, PrestaShop uses standardrel="canonical"
link tag to indicate which is the one base URL for a given content.
While it is highly recommended to enable this option, it also depends on your theme actually implementing correctly the<link>
header tag. Ask the theme designer for more information.
There are three options:- No redirection. You might get duplicate URLs.
- 301 Move Permanently. Returns the HTTP 301 status code, pointing to the main URL and notifying search engines that this is the only URL to take into account.
- 302 Moved Temporarily. Returns the HTTP 302 status code, pointing to the main URL and notifying search engines that the main URL might change later.
- Disable apache multiviews. Apache is the most popular web server, and is most likely the one your web host uses for your site (although you should check this for yourself). Multiviews is a content negotiation system: when enabled, the web server tries to serve the user a page in what it thinks is the best matching language version, under the same URL. Unfortunately, this might bring trouble to PrestaShop's friendly URLs feature. If this is the case, you can try to disable multiviews with this option.
- Disable apache mod security.
mod_security
is an Apache server module which acts as a firewall, protecting your server from intrusions. It can however block some key features, or even produce errors in some configuration. In such case, disable that firewall here.
Info |
---|
In previous version of PrestaShop, you had to manually generate a new |
Set shop URL
...
- son utilizadas para el mismo producto, y sólo presentan una diferencia. Si usted quiere que su producto tenga una única dirección URL y no muchas duplicadas, debería permitir las URLs canónicas.
Las URLs canónicas es una forma de eliminar el contenido duplicado – que podría perjudicarle en el posicionamiento de su tienda en los buscadores, ya que tener contenido duplicado es considerado spam. Para evitar que los motores de búsqueda le consideren un spammer, PrestaShop utiliza un elemento de enlacesrel="canonical"
para indicar cuál es la URL base para un contenido dado.
Aunque es recomendable activar esta opción, esto también dependerá de si el tema actual de su tienda implementa correctamente la etiqueta de cabecera<link>
header tag. Tendrá que preguntarle al diseñador del tema sobre esta cuestión.
Hay tres opciones disponibles:- Sin redirección. puede obtener direcciones URL duplicadas.
- 301 Movido permanentemente. Devuelve el código de estado HTTP 301, apuntando a la URL principal y notificando a los motores de búsqueda que esta es la única URL a tener en cuenta.
- 302 Movido temporalmente. Devuelve el código de estado HTTP 302, apuntando a la URL principal y notificando a los motores de búsqueda que la dirección URL principal podría cambiar más adelante.
- Desactivar Apache MultiViews. Apache es el servidor web más popular, y es muy probable que es el que utilice su proveedor para alojar su tienda (aunque debe comprobarlo). Multiviews es un sistema de negociación de contenidos donde el servidor Web trata de servir al usuario la versión de la página que piensa que mejor se adapta a su idioma, bajo la misma URL. Desafortunadamente, esto puede ocasionarle problemas con las URLs amigables. Si este es el caso, bastará con que desactive Multiviews utilizando esta opción.
- Desactivar mod security en Apache.
mod_security
es un módulo del servidor Apache que actúa como cortafuegos, protegiendo a los servidores de intrusiones. Sin embargo, puede bloquear algunas características importantes, e incluso producir errores dependiendo de la configuración. En tales casos, deshabilite este módulo desde aquí.
Info |
---|
En versiones previas de Prestashop, tenía que generar manualmente un archivo |
Establecer URL de la tienda
En esta sección, usted puede ver y editar algunos de los ajustes predeterminados del servidor:
- Shop domain. Your store's main domain name or IP address.
- SSL domain. Your store's secure domain name (
https://
) or IP address. - Base URI. The folder where you installed PrestaShop. If it is at the root of the domain, use "
/
".
...