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:
1 2 |
RewriteCond %{REQUEST_URI} !^/store/ RewriteRule ^(.*)$ /store/$1 |
Now, you should replace store with a subdirectory path.