From 8467a5d48fd209a232c3507c17a809909a28a04b Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 10 Jan 2014 10:37:50 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 175966b..c61b96f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -3,6 +3,9 @@ location PATHTOCHANGE { if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } + if ($request_uri !~ index.php/$) { + rewrite ^/PATHTOCHANGE/(.*)$ https://$server_name/PATHTOCHANGE/index.php/$1 permanent; + } index index.php; try_files $uri $uri/ /index.php?$args; location ~ [^/]\.php(/|$) {