How can I substitute URLs of a web application in a sub folder as installed on root.
e.g. need to map
example.com/index.php
to
example.com/new/index.php
I do not want redirection but url rewrite to exempt folder name.
Help me to learn and define rules.
You can use the following rule to rewrite any request that’s URL path (without path prefix) does not start with
new/:This will also work in .htaccess files other than in the document root directory.
But as you want to use this rule in the .htaccess file in the document root directory, you could also use REQUEST_URI: