Magento remove store code for default store view

Magento remove store code for default store view

July 17, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento remove store code for default store view

Removing Store Code for Default Store View in Magento

Magento is a powerful e-commerce platform that allows you to create multi-language stores easily. However, sometimes you might want to remove the store code from your default store’s URL while keeping it for other language versions. In this guide, we’ll walk through the process of removing the store code for your default store view.

Understanding Magento Store Code

When you enable the “Add Store Code to URLs” option in Magento, it appends the store code to all URLs on the frontend. This is useful for managing multiple stores within a single installation and for SEO purposes. However, for your primary or default store, you might prefer a cleaner URL without the store code.

Removing Store Code from Default Store

To remove the store code from your default store’s URL:

  1. Disable Add Store Code to URLs

    Navigate to System > Configuration > Web > Url Options. Look for the setting called “Add Store Code to Urls”. If it is set to “Yes” (which is the case if you want to see store codes in all URLs), change it to “No”.

  2. Clear Cache

    Once you’ve made this change, ensure that you clear your Magento cache by going to System > Tools > Cache Management and clicking on the “Flush Magento Cache” button.

  3. Verify Changes

    Now, when you visit your default store’s homepage or any other page, you should see the URL without the store code. For example:

    • Before: https://www.yourstore.com/en/
    • After: https://www.yourstore.com/

Considerations and Best Practices

Impact on SEO

Removing the store code from your default store’s URL might affect its SEO performance if it was previously indexed with the store code. To mitigate this, ensure you update all internal links to reflect the new URL structure.

Managing Multi-Language URLs

For other language versions, keeping the store code in the URL is a good practice for managing and indexing them separately.

Conclusion

Removing the store code from your default Magento store’s URL is a straightforward process involving just a few steps in the admin panel. By following this guide, you can achieve cleaner URLs while keeping the benefits of Magento’s multi-language capabilities.

Remember to always test changes thoroughly on a staging environment before applying them to your live site. If you need further assistance with customizing your e-commerce store, feel free to explore our services at Laravel Company.

The default store view URL is now properly configured without the store code. You can continue to manage other language versions separately while enjoying a clean and professional look for your primary store’s online presence.

Happy coding!

Cache Configuration SEO CLI

Our network