Modrewrite Issue

Job ID: 34177038

Budget: $30 – $250 USD

I have an issue, everything is redirecting to my plesk panel and I cannot access some files... this is a rewrite issue.
domain.com redirects to my plesk panel
domain.com/billing/32432rewr32q4r3wqfew/out.php
should redirect to domain.come/billing/out.php (something like this)...

Here is my script maker said:
Did you drop using Apache and switched to Nginx?

The problem is that this URL:
https://domain.com/admin/billings/ccbill/ec0a74fd48e3abb9af3739c5bfb0acc7.php

Is rewritten here:
https://domain.com/admin/billings/ccbill/ccbill.php

By this rewrite rule in /admin/.htaccess:
RewriteRule ^billings/([^/]*)/ec0a74fd48e3abb9af3739c5bfb0acc7\.php$ billings/$1/$1.php [L,QSA]

The fact that virtual URL gives 404 means that either Apache, or mod_rewrite is not working.

If you migrated your project to nginx, you may be missing these system rewrites:

# admin panel rewrites
rewrite ^/admin/posts_for_(.*)\.php$ /admin/posts_for_types.php?post_type_external_id=$1 last;
rewrite ^/admin/feeds/(.*)/$ /admin/feeds/get_feed.php?external_id=$1 last;
rewrite ^/admin/api/ec0a74fd48e3abb9af3739c5bfb0acc7\.php$ /admin/api/kvs_api.php last;
rewrite ^/admin/billings/([^/]*)/ec0a74fd48e3abb9af3739c5bfb0acc7\.php$ /admin/billings/$1/$1.php last;

ALSO I TRIED THIS:
https://support.plesk.com/hc/en-us/articles/115000522834-How-to-enable-Apache-or-Nginx-rewrite-rules-in-Plesk-
It led to the issue of everything going to my plesk panel
Related categories: PHP Linux Apache Nginx MySQL