Magento Kategorien weiterleitung

Suppose we want to position several CMS pages in the main menu alongside the sales categories, which we can edit freely in the category management and move around as needed. As an example, let's take a page for presenting the company, which we create as a category called "Company" and which is then accessible at /company.html. However, we do not want /company.html to be displayed using a static block, for example (due to the limited editing options), but instead want to create a new CMS page called "Company", making it accessible at /company.

 

The first important step here is to adjust the system-generated rewrite, because otherwise deleting it can cause problems with reindexing, and this rewrite will keep reappearing. Let's assume that the "Company" category has ID 1234. The system-generated rewrite therefore wants to display the page "catalog/category/view/id/1234" (= target path), but not redirect to it (Redirect="No") when the page /company.html is requested (= request path). We now change "Redirect" to "Permanent (301)" and create a new custom rewrite that redirects from "catalog/category/view/id/2849" to the desired page (/company) (Permanent (301)). Then we are almost finished—for multilingual pages, rewrites for the respective other languages must also be added (e.g. redirecting from /company to /company when switching to English).

 

If you do not want to redirect to a CMS page but instead want to display, for example, the contact form, another rewrite is required. If, for example, you want to redirect to the page /contact, this rewrite must contain the request path "contact" and the target path "contacts" (Redirect: No).