privacy-policy, the link in the cookie restriction mode will return “404 - Page Not Found.” To redirect traffic to the new URL key, create a custom rewrite with the following settings:
Before you begin, figure out the URL keys that you need for the ID Path, Request Path, and Target Path. Just remember— the “Request Path” is the old URL, and the “ID Path” and “Target Path” are the new URL.
|1.||On the Admin menu, select Catalog > URL Rewrite Management.|
|2.||In the upper-right corner, click the Add URL Rewrite button.|
|3.||Set Create URL Rewrite to “Custom.”|
|4.||In the URL Rewrite Information section, do the following:|
|a.||If you have multiple stores, select the Store where the rewrite applies.|
|b.||In the ID Path field, enter the relative path of the destination page.|
- To redirect to another CMS page in your store, enter the relative path to the page, without a leading forward slash.
- To redirect to a page on a different site, enter the fully qualified URL of the new destination.
URL key of target page.
Relative path to target page, without leading forward slash.
Fully qualified URL of target page on external website.
|c.||In the Request Path field, enter the relative path of the page to be redirected.|
|d.||In the Target Path field, enter the valid URL of an existing page that will be the new destination. This refers to the same page as the ID Path.|
|e.||Set Redirect to one of the following:|
|f.||For your own reference, enter a brief Description of the rewrite.|
In the following illustration, the CMS page “about-magento-demo-store” is temporarily redirected to the target, “my-page.”
|5.||When complete, click the Save button.|
Your new rewrite now appears at the top of the list.
Test the rewrite from your store, to make sure that it works correctly.