...
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.
As you can see in the second example above, both categories and products can have a friendly URL: in the example above, id_category=2
becomes 2-music-players
, and id_product=27
becomes 27-ipod-nano-green
. While the ID number cannot be removed by default, the words can be either generated from the category/product name , or written by hand. This is done directly in the configuration page for the product or the category (in the Catalog menu): the "Friendly URL" field can be found directly on the main configuration page of a category and under the "SEO" tab of the configuration page of a product.
...
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. |
...
- 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 the 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 blue 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 ("-").
...
You can change the way friendly URLs are generated, by changing the route to a resource on in your shop.
For instance, the default route to display a product's page is {category:/}{id}-{rewrite}{-:ean13}.html
, which results in /summer-dresses/7-printed-chiffon-dress.html
You could change that route to {manufacturer:/}{id}-{rewrite:/}
to obtain /fashion-manufacturer//7-printed-chiffon-dress/
8 fields are available by default, and each is accompanied with by a list of available keywords. Some keywords are mandatory and are indicated with a *
.
...
Once you have updated your fields, do not forget to save your changes, then on the "Save" button in the "Set up URLs" section in order to regenerate your .htaccess
file, which is necessary for your friendly URLs.
Info |
---|
If you don't like having IDs at the start of the slug, you can change that in the field "Route to products" to something like this:
|
Robots file generation
A robots.txt
file enables you to block specific automated bots and web spiders which crawl the Web in order to find more web pages to add to their company's servers. Some bots you want to have full access to your website, such as Google's or Yahoo!'s, and some others you would rather not, such as spam bots, content thieves, e-mail collectors, etc. Note that the worst of bots do not respect this file's directives, as it is purely advisory.
...