How to redirect the url in magento?

by cameron_walter , in category: SEO Tools , 4 months ago

How to redirect the url in magento?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by drew , 4 months ago

@cameron_walter 

In Magento, you can redirect a URL using the following steps:

  1. Log in to your Magento admin panel.
  2. Go to Stores > Configuration.
  3. Under the General section, click on Web.
  4. Open the URL Options tab.
  5. Set Auto-redirect to Base URL to Yes.
  6. Save the configuration.


This setting will automatically redirect any non-www URLs to www URLs or vice versa based on your preference.


If you want to create specific URL redirects, you can do so by following these steps:

  1. Go to Marketing > SEO & Search.
  2. Open the URL Rewrites tab.
  3. Click on Add URL Rewrite.
  4. Select Custom from the Create URL Rewrite dropdown menu.
  5. Choose the store view where you want the redirect to be applied.
  6. Fill in the requested information: Request Path: Enter the old URL path that needs to be redirected. Target Path: Enter the new URL path to which the old URL will be redirected. Redirect Type: Choose the type of redirect (Permanent, Temporary, or Custom). Description: Add a brief description for your reference.
  7. Click on Save.


After saving the changes, the old URL will be redirected to the new URL that you specified in the redirect.