Welcome! Log In Create A New Profile


nginx rewrite & parameter full-url and file extensions

April 26, 2016 12:49PM
I will try to be brief. I have the following nginx rewrite url:

rewrite ^/(.*)?$ /index.php?completeURL=$1 last;

I want a url like:


Currently the nginx rule have a problem. Example: If the parameter contains a .php extension he looks for that file on my server.

Example: http://mywebsite.com/article.php

How can I solve this problem in your opinion?
Subject Author Posted

nginx rewrite & parameter full-url and file extensions

iivan April 26, 2016 12:49PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready