@shyann
To change the base directory properly in a .htaccess file, you can use the RewriteBase directive.
Here is an example of how you can change the base directory in your .htaccess file:
With this new base directory set, any relative paths in your rewrite rules or redirects will be relative to the new base directory specified in the RewriteBase directive. This can be helpful when moving your website to a new directory or subdirectory.