Giter Site home page Giter Site logo

msengera / magento-2-csv-to-301-redirect Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 8 KB

A extension to mass enable 301 redirects via CSV file. Checks are only made Magento serve a 404. If the URL is found, a redirect is made to another URL instead of showing a 404.

PHP 95.06% HTML 4.94%
magento2 magento extension redirect-urls

magento-2-csv-to-301-redirect's Introduction

Magento 2

[Magento 2] Sengera/DreiNullEins

A extension to declare a CSV File with certain redirect pairs (New Url and Old Url). If Magento 2 try to force an 404 error this extension check first: "Contains the CSV the requested URL?" If the CSV contain the requested URL the extension will redirect to the new url and send a 301 to the browser.

With this extension you have a chance to minimize 404 errors on your page. You will often need this for SEO purposes.

Installation

  1. Copy the whole content of this module in your Magento installation directory.
  2. Run "bin/magento setup:upgrade"
  3. Depending on your Workspace: Run setup:di:compile and redeploy static-content if needed
  4. Clear cache (Console "bin/magento c:c" or via Backend)
  5. Customize the var/dreinulleins.csv to fit your needs. Every row one pair of URLs.
  6. Rewrite templates and customize them.
  7. Test extension and be happy.

Best regards and happy coding!

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.