I have gone through the directories of Magento 2 and i found that directory structure has changed significantly. It is important to understand these difference between Magento 1.x and Magento 2. In this post i will describe significant changes of directory and file structure.
Root Folder Structure
First let’s compare root folder structure of Magento 1.x and Magento 2. There are major changes applied at root level. Very first thing you will identify is that some new folders are introduced and some of them are removed.
- media and errors folder are moved to pub folder
- skin and js folder are moved to pub/static folder. Now it is easy to maintain static content via CDN.
- js, css, images are again divided into pub/static/adminhtml and pub/static/frontend for backend and frontend area respectively.
- dev folder contains various tools for developers such as migration tools and tests. shell is moved to dev folder
- downloader, includes and pkginfo folder are no more with magento 2.
- setup directory is for installation process
- get.php, cron.php and index.php files are moved to pub folder.
Continue reading “Magento 2 Directory Structure” →