How to add external link to top menu item in magento

How to add external link to top menu item in magento

July 25, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to add external link to top menu item in magento

In this post, we’ll guide you through adding an external link to your top menu item in Magento 1.9. While Magento allows opening CMS pages or categories when clicking on a menu item, adding an external URL requires a slightly different approach.

Understanding the Problem

You have successfully configured your top menu with categories using custom URL rewrite rules. However, you want to redirect users from your subdomain (e.g., http://domain.xyz.dom/) to an external page within your main domain (http://www.xyz.dom/abc).

Step-by-Step Solution

1. Create a Custom Menu Item

  • Navigate to the Magento admin panel and go to “CMS” > “Pages”.
  • Click on “Add New Page” in the top-right corner.
  • Fill out the basic information (Title, Content Headline, etc.).
  • In the “Content” field, you can leave it empty as we won’t be using this page.

2. Add URL Rewrite

  • Go to “URL Rewrite Management” under “CMS” > “URL Rewrite”.
  • Click on “Add URL Rewrite Rule”.
  • Set the following values:
    • Request Path: Leave blank
    • Target Path: Leave blank
    • Redirect Type: Custom (301)
    • Target URL: http://www.xyz.dom/abc
  • Click “Save Config”.

3. Add Menu Item

  • Go to “CMS” > “Pages”.
  • Find the page you just created and click on the ID number.
  • In the top-right corner, click “Add Content”.
  • Select “Manage Categories”.
  • Choose one of your categories (or create a new one).
  • Set the following values:
    • Display Mode: Products Only
    • Sort By: Position
    • Click “Save Category”.

4. Activate Menu

  • Go to “CMS” > “Pages”.
  • Find your category page and click on “Page Information”.
  • Scroll down to the “Menu Title” field.
  • Enter a title for your menu item (e.g., “External Link”).
  • Click “Save Config”.

Final Touch: Testing Your Menu Item

Now, when you navigate to your Magento site’s homepage, you should see your new menu item with an external link. Clicking on this item will redirect the user from your subdomain to the specified URL.

Conclusion

Adding an external link to your top menu in Magento requires a combination of creating a CMS page (for the menu item), adding a custom URL rewrite rule, and linking it to a category. Remember that this method works for Magento 1.x versions; the process may differ slightly in later versions like Magento 2.

If you’re looking to upgrade or need professional assistance with your Magento site, feel free to reach out to our team at Laravel Company. We specialize in Magento development and would be happy to help optimize your e-commerce platform.

Magento 1 Catalog Admin Configuration

Our network