The htaccess is used to redirect to users to the correct index.php where the bootstrapping will happen.
| Location |
Main route |
Rewrite to |
Used for |
| scr/.htaccess |
/* |
scr/index.php |
Used to compile the theme that visitors will see |
| scr/admin/.htaccess |
/admin/* |
scr/admin/index.php |
Used to compile the admin panel |
As you might have noticed in the table above, there are 2 htaccess files. It works like it should but its not a nice solution.. When changing root directory both files need to be edited which isn't very practical
Code a htaccess, located in the scr root folder that merges both htaccess files into 1.
Good luck 😸