Time for action – creating robots.txt
Here, we will create a robots.txt
file and place it on your web server. It will keep the search engines from indexing unnecessary pages like account pages. This is good, as it will prevent search results about your site from becoming cluttered.
In your PrestaShop control panel, hover over the Preferences tab and click on SEO & URLs.
Scroll down to the Robots file generation section.
Click on the Generate robots.txt file button.
Now you have a
robots.txt
file on your server.
What just happened?
You have just (respectfully) marked a few areas of your store as off-limits to the search engines. However, please note this is not a security feature. It does not block access, but merely asks search engines (99 percent of them) to avoid certain areas. We will cover actual security measures in Chapter 6, Security and Disaster Recovery.