Previously, a lot of project files was in the the root directory. Including the following files was in the root:
index.php
make.php
In order to make file structure more logical, the above files have been moved to the /operation/ folder.
Question: how to write a redirect rule in .htaccess if I want the following links to still work correctly:
https://example.com/
https://example.com/?var=value
https://example.com/make.php
And so that the client does not even guess that, in fact, the access goes to files:
https://example.com/operation/
https://example.com/operation/?var=value
https://example.com/operation/make.php
If I specify rules like this in the .htaccess file:
RewriteEngine On
RewriteRule ^/?$ /operation/
RewriteRule ^/(.*\.php)$ /operation/$1
then https://example.com/ works normally, but https://example.com/make.php does not work.