Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

nginx rewrite & parameter full-url and file extensions (no replies)

$
0
0
Hi,
I will try to be brief. I have the following nginx rewrite url:

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

I want a url like:
http://mywebsite.com/http://www.otherwebsite.com/dir1/dirx/article.php&id=2&category=1

request:
http://mywebsite.com/index.php?completeURL=http://www.otherwebsite.com/dir1/dirx/article.php&id=2&category=1

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?

Viewing all articles
Browse latest Browse all 7229

Trending Articles