skip to Main Content

php nginx rewrite urls to index.php with

I've been trying to get this to work for a while now, but I'm failing manifold. I have the following configuration: server { listen 8081; server_name name.of.server.en; root /path/to/api; index index.php; location ~ .php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.4-fpm.sock; }…

VIEW QUESTION

Long URL in php using htaccess – Apache

I have a very long URL: //domain/administration/registrar/term_detail.php?a_id=47 And I want to make it looks like: //domain/administration/registrar/detail/47 I have created an htaccess file in //domain/administration/registrar/. Below is my code in htaccess and it is not working. Any suggestion of what I…

VIEW QUESTION
Back To Top
Search