GithubHelp home page GithubHelp logo

mageprashant / magento2-remove-store-code-from-url Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

Magento 2 Remove Store Code from URL Extension FREE

License: Other

PHP 100.00%
magento magento2 magento2-extension-free magento2-module mageto-2-extensions magento2-store remove-store-url magento2-free-modules

magento2-remove-store-code-from-url's Introduction

Magento 2 Remove Store Code from URL Extension FREE

Magento 2 remove the store code in the store from the URL. The module is in effect only when web/url/use_store is enabled and is meant to be used for multistore setups, where the main store shop should not contain any store code, whereas all other stores should.

Installation

  • composer require mageprashant/magento2-remove-store-code-from-url
  • bin/magento module:enable MagePrashant_RemoveStoreCode
  • bin/magento setup:upgrade
  • bin/magento cache:flush
  • bin/magento setup:di:compile

Enable the extension

Enabled

  • Stores > Settings > Configuration > MagePrashant Extensions > Remove store code from URL > General > Enabled: Yes

Remove store code from URL

  • Stores > Settings > All Stores
    • Select your desired store to remove store code from the url.

      All Stores

      Store Information

Example

When the store codes in the url are disabled, the URL of the stores looks like this: https://magento.com/.

When the store codes in the url are enabled, the URL of the stores looks like this: https://magento.com/store_code/.

When this extension is installed and enabled the module, and the store codes are enabled to be shown in the url under Store > Configuration > General > Web > Add Store Code, the module will not show the store code for the store for which you select the setting on stores but will show it for any other store.

So, for the default store the url will be https://magento.com/ while for all other store, the URL will be : https://magento.com/store_code

Contribution

Want to contribute to this extension? The quickest way is to open a pull request on GitHub.

Support

If you encounter any problems or bugs, please open an issue on GitHub.

License

MIT License

magento2-remove-store-code-from-url's People

Contributors

mageprashant avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.