From 0cd8273795be528b1d4b945637c36f64f69271ba Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 24 Mar 2020 16:27:24 +0800 Subject: [PATCH 1/3] fix port --- function/normal.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/function/normal.php b/function/normal.php index f8770ab..923f676 100644 --- a/function/normal.php +++ b/function/normal.php @@ -159,7 +159,7 @@ function install() function checkrewrite() { url=location.protocol + "//" + location.host; - if (location.port!="") url += ":" + location.port; + //if (location.port!="") url += ":" + location.port; url += location.pathname; if (url.substr(-1)!="/") url += "/"; url += "config.php"; @@ -170,13 +170,12 @@ function install() xhr4.send(null); xhr4.onload = function(e){ console.log(xhr4.responseText+","+xhr4.status); - //filename = JSON.parse(xhr4.responseText); if (xhr4.status==201) { document.getElementById("checkrewritebtn").style.display = "none"; document.getElementById("submitbtn").disabled = false; document.getElementById("formdiv").style.display = ""; } else { - alert(xhr4.status); + alert(url+'\n'+xhr4.status); } } } From 43cd32e7bf1445ae61aead7a39412f2f7cc82db2 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 24 Mar 2020 16:30:19 +0800 Subject: [PATCH 2/3] Update normal.php --- function/normal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function/normal.php b/function/normal.php index 923f676..1e4e0d7 100644 --- a/function/normal.php +++ b/function/normal.php @@ -175,7 +175,7 @@ function install() document.getElementById("submitbtn").disabled = false; document.getElementById("formdiv").style.display = ""; } else { - alert(url+'\n'+xhr4.status); + alert(url+"\n"+xhr4.status); } } } From 5c016a07fe68d778ff158f73c1a616ae2debaec5 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 24 Mar 2020 16:50:25 +0800 Subject: [PATCH 3/3] Update .htaccess --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 3cb9db5..c548b41 100644 --- a/.htaccess +++ b/.htaccess @@ -8,7 +8,7 @@ RewriteRule ^(.*) index.php?/$1 [L] # nginx # rewrite ^(.*) /index.php?/$1 last; # -# caddy (not sure) +# caddy # rewrite { # to index.php?/$1 # }