About htaccess usage of App Servcie using PHP8

Noriko 251 Reputation points
2022-08-27T00:05:34.4+00:00

I am using PHP8.0 in App Service. I was using mod_rewrite for htaccess because I was migrating content that used Apache, but I can't use it because App Service is Nginx. How can I use mod_rewrite described in htaccess?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,973 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2022-08-27T02:45:01.497+00:00

    Hi @Noriko

    Please use the following guide to setup rewrite on nginx:

    NGINX Rewrite Rules for Azure App Service Linux PHP 8.x

    https://azureossd.github.io/2021/09/02/php-8-rewrite-rule/

    -------------------------------------------

    If this is helpful please accept answer.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.