{"id":710,"date":"2023-05-31T14:13:00","date_gmt":"2023-05-31T11:13:00","guid":{"rendered":"https:\/\/presta.site\/blog\/?p=710"},"modified":"2023-05-31T14:13:57","modified_gmt":"2023-05-31T11:13:57","slug":"solving-prestashop-seo-url-rewriting-problems","status":"publish","type":"post","link":"https:\/\/presta.site\/blog\/en\/solving-prestashop-seo-url-rewriting-problems\/","title":{"rendered":"Solving PrestaShop SEO URL rewriting problems"},"content":{"rendered":"<p>SEO URL rewriting is an essential part of any ecommerce store. This method turns your dynamic URLs into static and user-friendly URLs that are easier to understand, both for users and search engines.<\/p>\n<p><!--more--><\/p>\n<p>Instead of displaying lengthy, complex URLs filled with numbers and codes, URL rewriting transforms them into concise, readable, and meaningful URLs.<\/p>\n<p>Readable URLs provide an understanding of what the webpage is about just by looking at the URL. From the SEO perspective, they are beneficial because they can include keywords, thereby enhancing your website&#8217;s visibility and ranking.<\/p>\n<h2><strong class=\"\">Importance of SEO URL rewriting in PrestaShop<\/strong><\/h2>\n<p>In PrestaShop, SEO-friendly URL rewriting is critical. Properly rewritten URLs improve the user experience, making it easier for customers to navigate your online store. Moreover, SEO-friendly URLs increase your store&#8217;s visibility on search engines, driving more organic traffic to your site. Ultimately, this can lead to higher sales and profitability for your online business.<\/p>\n<h2>Enabling URL rewriting in PrestaShop<\/h2>\n<p><a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-716\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-5-1024x412.png\" alt=\"\" width=\"660\" height=\"266\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-5-1024x412.png 1024w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-5-300x121.png 300w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-5-768x309.png 768w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-5.png 1381w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/a><\/p>\n<p class=\"\">To enable SEO URL rewriting in PrestaShop, follow these steps:<\/p>\n<ol>\n<li>Go to your PrestaShop admin dashboard.<\/li>\n<li>Navigate to &#8216;<strong>Shop Parameters<\/strong>&#8216; and then &#8216;<strong>Traffic &amp; SEO<\/strong>&#8216;.<\/li>\n<li>Scroll down to &#8216;Set up URLs&#8217; section.<\/li>\n<li>Toggle the &#8216;Friendly URL&#8217; option to &#8216;Yes&#8217;.<\/li>\n<li>Don&#8217;t forget to save your changes.<\/li>\n<\/ol>\n<p>Note that if you&#8217;re using the <strong>Nginx<\/strong> web server, this won&#8217;t work unless you manually edit the site configuration and add rewrite rules there (see the Nginx section below).<\/p>\n<h2>Common problems with URL rewriting<\/h2>\n<p class=\"\">PrestaShop users can face several issues with SEO URL rewriting. Some common problems include:<\/p>\n<ol>\n<li><strong>Non-working URL rewriting<\/strong>: Sometimes, even after enabling the &#8216;Friendly URL&#8217; option, URL rewriting may not work.<\/li>\n<li><strong>Duplicate content<\/strong>: Multiple URLs pointing to the same content can cause a duplicate content issue.<\/li>\n<li><strong>Multilingual site issues<\/strong>: Managing URL rewriting in a multilingual site can be challenging.<\/li>\n<li><strong>404 errors<\/strong>: Incorrect URL rewriting can lead to broken links and 404 errors.<\/li>\n<\/ol>\n<h2>Server configuration for SEO URL rewriting<\/h2>\n<p>The correct server configuration is important for URL rewriting to work correctly.<\/p>\n<ul>\n<li>If you&#8217;re using an <strong>Apache<\/strong> server, ensure that the <strong>mod_rewrite<\/strong> module is enabled. It&#8217;s most often enabled by default. If no, you can usually enable it through the server&#8217;s control panel.<br \/>\nYou can also check if the .htaccess file is properly created in the root folder of the site. It should be created of updated when you save settings on the SEO &amp; URLs page.<\/li>\n<li>For <strong>Nginx<\/strong> servers, it&#8217;s a bit more complex. You need to adjust the server block configuration to include URL rewrite rules. It requires you to have administrator privileges on your server. You can apply the changes using SSH or in your hosting control panel.<\/li>\n<\/ul>\n<h3>Nginx configuration<\/h3>\n<p><a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_2-4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-719\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_2-4.png\" alt=\"\" width=\"947\" height=\"220\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_2-4.png 947w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_2-4-300x70.png 300w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_2-4-768x178.png 768w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_2-4-941x220.png 941w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/a><\/p>\n<p>Here&#8217;s a quick guide to modifying the <strong>Nginx<\/strong> server block configuration:<\/p>\n<ol>\n<li class=\"\">Access your Nginx server configuration. Navigate to the &#171;<strong>\/etc\/nginx\/sites-available<\/strong>&#187; directory.<\/li>\n<li>Open the configuration file for your website. It might be named after your domain.<\/li>\n<li>In this file, locate the server block for your site and add there the rules.<br \/>\nFor the most up-to-date example of the configuration refer to the official docs: <a href=\"https:\/\/devdocs.prestashop-project.org\/8\/basics\/installation\/nginx\/\">https:\/\/devdocs.prestashop-project.org\/8\/basics\/installation\/nginx\/<\/a><\/li>\n<li class=\"\">Save your changes and exit the file.<\/li>\n<li>Test your Nginx configuration for syntax errors using the command &#8216;<strong>nginx -t<\/strong>&#8216;. If everything is okay, you&#8217;ll see a message saying &#8216;configuration file \/etc\/nginx\/nginx.conf test is successful&#8217;.<\/li>\n<li>If the test is successful, reload Nginx to apply the changes using a command like &#8216;<strong>service nginx reload<\/strong>&#8216; or &#8216;<strong>systemctl reload nginx<\/strong>&#8216;.<\/li>\n<\/ol>\n<p>It&#8217;s <strong>important to make a backup<\/strong> before making these changes. If you&#8217;re unsure about anything, consult with a server administrator or IT professional.<\/p>\n<h2>Solving PrestaShop SEO URL rewriting problems<\/h2>\n<h3>When URL rewriting doesn&#8217;t work at all:<\/h3>\n<ol>\n<li><strong>Check the &#171;Friendly URL&#187; option.<\/strong><br \/>\nEnsure that the &#171;<strong>Friendly URL<\/strong>&#187; option is enabled in your PrestaShop settings: <strong>Shop Parameters &gt;&gt; Traffic &amp; SEO &gt; <\/strong>block &#171;<strong>Set up URLs<\/strong>&#171;.<\/li>\n<li><strong>Determine your web server.<\/strong><br \/>\nIdentify what web server your website is running on. It could be Apache, Nginx, or another type. Most often you can get this info on page <strong>Advanced Parameters &gt;&gt; Information<\/strong> in your Back Office, block <strong>Server information.<\/strong> You can also contact your hosting provider for more information.<\/li>\n<li><strong class=\"\">Configure your server.<\/strong><br \/>\nIf you&#8217;re using an Apache server, just make sure the <strong>mod_rewrite<\/strong> module is enabled. If you&#8217;re using Nginx, see the Nginx configuration section above.<\/li>\n<\/ol>\n<h3>If you are experiencing other problems with URL rewriting:<\/h3>\n<ol>\n<li><strong>To avoid duplicate content<\/strong> use the &#171;Canonical URL&#187; feature in PrestaShop. This ensures search engines know the preferred URL for pages with similar or identical content. See option &#171;<strong>Redirect to the canonical URL<\/strong>&#187; on the page <strong>Shop Parameters &gt;&gt; Traffic &amp; SEO<\/strong>. For the shop in production, it should be set to &#171;<strong>301 Moved Permanently<\/strong>&#171;.<br \/>\nIf you use third-party modules to add additional content to your site (blog posts, additional product listing pages, etc.), make sure they also support <strong>Canonical redirection<\/strong>.<br \/>\nIf your site is multilingual, make sure that each language has its own content, and that there are no duplicate links, titles, meta titles, or the text itself.<\/li>\n<li><strong>To avoid 404 errors<\/strong>:<br \/>\nRegularly monitor your site for broken links that lead to 404 errors. Broken links can be harmful to your site&#8217;s SEO and damage the user experience. Various online tools like Google Analytics can help you identify and fix broken links.<br \/>\nHere are some most often reasons of 404 errors:<br \/>\n&#8212; Changing or restructuring the website<br \/>\n&#8212; Deleting pages<br \/>\n&#8212; Broken links (e.g. due to typos)<br \/>\n&#8212; Moving a website or changing domain names<br \/>\n&#8212; Changing the URL structure after upgrading PrestaShop or a specific content module<\/li>\n<\/ol>\n<hr \/>\n<p>In conclusion, SEO URL rewriting is an essential aspect of optimizing your PrestaShop store for search engines. While there can be several issues associated with it, proper understanding, correct configuration, and following best practices can help you solve most problems.<\/p>\n<p>We invite you to share your experiences and challenges with URL rewriting in PrestaShop in the comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SEO URL rewriting is an essential part of any ecommerce store. This method turns your dynamic URLs into static and user-friendly URLs that are easier to understand, both for users and search engines.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/710"}],"collection":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/comments?post=710"}],"version-history":[{"count":9,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/710\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/710\/revisions\/721"}],"wp:attachment":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media?parent=710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/categories?post=710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/tags?post=710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}