Note: Friendly URLs only work with a server setup that supports URL rewriting (through the Apache Web Server mod rewrite 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, in your PrestaShop admin panel go to Shop Parameters -> Traffic section:
- At the Set up URLs section set Friendly URL 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:
- Redirect to Canonical URL. A given PrestaShop page can have many URLs, most often when there are parameters to consider. You may enable Canonical URLs if you want your product to have a single URLs and not many duplicate ones. Canonical URLs are a way to eliminate self-created duplicated 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 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). Multiview is a content negotiation system: when enabled, the web server tries to serve a page in what it thinks is the best matching language version, under the same URL. Unfortunately, this might bring a trouble to PrestaShop’s friendly URLs feature. If this is a case, you can try to disable multi-views with this option.
- Disable Apache’s mod_security module. Mod_security is 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.
Hopefully, this tutorial was helpful for you.