How to adjust Apache web server to run Magento 2 in a subdirectory
To adjust Apache web server to run Magento 2 in a subdirectory utilize the following .htaccess files:

Find the RewriteEngine on line:
Place this code right after the line:
Now, you should replace store with a subdirectory path.
