How To Use Magento 2 URL Rewrites

Person Shopping Online

Magento 2 is one of the most popular eCommerce platforms in the world, and for good reason. It offers a vast range of features and functionality that can help online businesses succeed. One of the most powerful features of Magento 2 is its URL rewrite functionality. In this article, we will discuss how to use Magento 2 URL rewrites to improve the functionality and user experience of your online store.

Speed Up Your Magento Store by 300%

What Are URL Rewrites?

URL rewrites are a way to change the structure of URLs on your website. They allow you to change long, complicated URLs into shorter, more readable ones. This can be helpful for both users and search engines. For users, shorter URLs are easier to remember, and for search engines, shorter URLs can help with ranking.

In Magento 2, URL rewrites are used to create custom URLs for products, categories, and CMS pages. This allows you to create more user-friendly URLs that are easier to remember and share.

How To Add A URL Rewrite in Magento 2

Adding a URL rewrite in Magento 2 is a relatively simple process. Here’s how to do it:

  1. Log in to your Magento 2 admin panel
  2. Navigate to Marketing > SEO & Search > URL Rewrites
  3. Click the "Add URL Rewrite" button in the top right corner of the page
  4. Select the "Custom" option from the "Create URL Rewrite" dropdown menu
  5. Choose the "Type" of URL rewrite you want to create (Product, Category, or CMS Page)
  6. Choose the "Store" you want the URL rewrite to apply to (this will default to "All Store Views")
  7. Fill in the "Request Path" field with the new URL you want to create (remember to keep it short and easy to remember)
  8. Fill in the "Target Path" field with the original URL of the page you are redirecting from (for example, if you are redirecting a product, this would be the product’s original URL)
  9. Choose the "Redirect Type" you want to use (301 or 302)
  10. Click the "Save" button to save your new URL rewrite

How To Edit A URL Rewrite in Magento 2

If you need to edit a URL rewrite in Magento 2, here’s what you need to do:

  1. Log in to your Magento 2 admin panel
  2. Navigate to Marketing > SEO & Search > URL Rewrites
  3. Find the URL rewrite you want to edit and click the "Edit" button next to it
  4. Make any necessary changes to the Request Path, Target Path, or Redirect Type fields
  5. Click the "Save" button to save your changes

How To Delete A URL Rewrite in Magento 2

If you need to delete a URL rewrite in Magento 2, here’s how to do it:

  1. Log in to your Magento 2 admin panel
  2. Navigate to Marketing > SEO & Search > URL Rewrites
  3. Find the URL rewrite you want to delete and click the "Delete" button next to it
  4. Confirm that you want to delete the URL rewrite by clicking the "OK" button in the confirmation popup

Tips For Creating Effective URL Rewrites in Magento 2

Creating effective URL rewrites in Magento 2 can take some time and experimentation. Here are some tips to help you get the most out of your URL rewrites:

  1. Keep it short and descriptive – Make sure your URL rewrites are as short and descriptive as possible. This will make it easier for users to remember and share them.
  2. Use keywords – Try to include relevant keywords in your URL rewrites. This can help with search engine rankings.
  3. Don’t change them too often – Once you’ve created a URL rewrite, try to avoid changing it too often. This can cause confusion for users and search engines.
  4. Check for broken links – When creating URL rewrites, make sure to check for broken links. If a link is broken, make sure to update it with a new URL rewrite.

Conclusion

Overall, URL rewrites are an essential part of any Magento 2 eCommerce website. They can help improve the user experience and search engine rankings of your website. By following the tips outlined in this article, you’ll be able to create effective URL rewrites that will help your website succeed.

Scroll to Top