@Mamadou Oury BARRY Thank you for reaching out to Microsoft Q&A.
I understand that you want to configure htaccess
file on azure webapp (in app service). htaccess
file is part of Apache and can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer.
If you want to host your application on Azure App service and want to use Apache as web server then you need to use runtime version as PHP and also starting php >=8.0 nginx is the web server on app service.
PHP versions <8.0 and =~8.0 are reaching End-of-life on azure app service and deploying/creating the webapp from portal (except phpv8.0) is not possible, you refer to this GitHub article for more information about php on app service.
If you want to use php runtime version <8.0 then you need to webapp for containers.
The below articles might help you in changing the configuration to htaccess file in app service in linux.
Feel free to reach back to me if you have any further questions on this.