The tools on this page help you improve the presence of your PrestaShop site on web searches, and therefore reach more potential customers.
By default, PrestaShop’s deep URLs (that is, specific pages rather than online the domain name) are rather uninformative to both the customer and search engines: a URL such as http://www.myprestashop.com/product.php?id_product=27 does not help visitors know what product is on that page. Friendly URLs are the way to achieve that, and get for instance http://www.myprestashop.com/2-music-players/27-ipod-nano-green.
Friendly URLs only work with a server setup that supports URL rewriting (through the Apache Web Server mod_rewrite feature, for instance). Make sure to check that your server does (ask your hosting provider!), as it can make your shop completely unavailable to customers if you enable friendly URLs and the server does not support it!
In order to enable SEO-friendly URLs
- Login to your PrestaShop admin panel.
- Open the CONFIGURE > Shop Parameters > Traffic section.
- Scroll down to Set up URLs section and find Friendly URL. Change this option to YES if you know that your server supports URL rewriting.
- Accented URL. PrestaShop is able to produce URL with special characters, for products with non-ASCII names. You can disable that option here.
- Redirect to the canonical URL. A given PrestaShop page can have many URLs, most often when there are parameters to consider: for instance,
http://example.com/product.php?id=5&option2point 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 standard
rel="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’s MultiViews option. 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 multi-views with this option.
- Disable Apache’s mod_security module.
mod_securityis a module of the Apache web server, 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.