from mozilla docs,
The HTTP OPTIONS method requests permitted communication options for a
given URL or server. A client can specify a URL with this method, or
an asterisk (*) to refer to the entire server.
Mostly, OPTIONS method is used to check whether to allow or not (CORS) browser can access to the API URL. In most browsers, if you call with ...
As per best practice do the following when you add a new website:
Place the config file under /etc/apache2/sites-available in your example newsite.conf.
"Enable" the websitee, run the command: a2ensite newsite
Test your config, run the command apache2ctl configtest
at last reload the config: service apache2 reload
This won't cause an outage for ...
Using mod_rewrite you can do something like this:
RewriteRule ^/?(subdir1)/olddirectory(?:$|/)(.*) https://www.example.com/$1/newdirectory/$2 [R=301,L]
The above will redirect as follows:
/subdir1/olddirectory to /subdir1/newdirectory/
/subdir1/olddirectory/ to /subdir1/newdirectory/
/subdir1/olddirectory/<something> to /subdir1/newdirectory/<...