Replace substring in URL via RewriteEngine – Apache
im desperately trying to make RewriteEngine to rewrite the following pattern: https://example.com/api/model/id/ https://example.com/staging/api/model/id/ internally to https://example.com/index.php/model/id/ https://example.com/staging/index.php/model/id/ I already tried several suggestions from several boards but none of them worked out for me. Ideally the rule should just search for…