Redirect CMS Category to CMS Page [Prestashop]


Redirecting a category to a specific page in PrestaShop can be achieved by modifying the .htaccess file or by the URL forwarding feature and with PHP within PrestaShop. Here are the steps for all methods:

Method 1: Using .htaccess

  1. Backup your .htaccess file: Before making any changes, it’s crucial to create a backup of your existing .htaccess file.
  2. Edit .htaccess: Open the .htaccess file located in the root directory of your PrestaShop installation.
  3. Add a Redirect Rule: Add a redirect rule at the end of the file to redirect the category to the specific page. For example:
    apache
    Redirect 301 /path/to/old-category http://www.yourdomain.com/path/to/new-page

    Replace /path/to/old-category with the actual path of your old category and http://www.yourdomain.com/path/to/new-page with the URL of the specific page you want to redirect to.

  4. Save and Upload: Save the changes to the .htaccess file and upload it back to your server.

Method 2: Using PrestaShop Back Office

  1. Login to PrestaShop Back Office: Log in to your PrestaShop Back Office.
  2. Navigate to URL Redirects:
    • Go to “Catalog” in the left sidebar.
    • Click on “SEO & URLs.”
    • In the “URL redirects” tab, you can manage redirects.
  3. Add a Redirect:
    • Click on the “+” button to add a new redirect.
    • Choose the source URL (old category) and target URL (new page).
    • Save the redirect.
  4. Clear Cache: After making changes, it’s a good practice to clear the PrestaShop cache. You can do this in the “Advanced Parameters” > “Performance” section.

Remember to replace the placeholder values with your actual category and page URLs. Additionally, the method you choose may depend on your specific server configuration and requirements.

Always test the redirection to ensure it works as expected, and be cautious when modifying configuration files to avoid causing issues with your PrestaShop installation. If you are not comfortable making these changes, consider seeking assistance from a developer or your hosting provider.

Method 3: Using PHP