From 972961700ff51906176ec66a6f6d65dd47c833bb Mon Sep 17 00:00:00 2001 From: pickrui Date: Fri, 8 May 2026 03:14:49 +0800 Subject: [PATCH] URL Rewrite --- Surge/Surge 3/Rule.conf | 4 ++++ Surge/Surge 4/Rule.conf | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Surge/Surge 3/Rule.conf b/Surge/Surge 3/Rule.conf index bb32733..79c6338 100644 --- a/Surge/Surge 3/Rule.conf +++ b/Surge/Surge 3/Rule.conf @@ -79,6 +79,10 @@ RULE-SET,LAN,DIRECT GEOIP,CN,Domestic FINAL,Others,dns-failed +[URL Rewrite] +"^https?:\/\/(ditu|maps).google\.cn" https://maps.google.com 302 +"^https?:\/\/(www.)?(g|google)\.cn" https://www.google.com 302 + [Host] diff --git a/Surge/Surge 4/Rule.conf b/Surge/Surge 4/Rule.conf index bb32733..79c6338 100644 --- a/Surge/Surge 4/Rule.conf +++ b/Surge/Surge 4/Rule.conf @@ -79,6 +79,10 @@ RULE-SET,LAN,DIRECT GEOIP,CN,Domestic FINAL,Others,dns-failed +[URL Rewrite] +"^https?:\/\/(ditu|maps).google\.cn" https://maps.google.com 302 +"^https?:\/\/(www.)?(g|google)\.cn" https://www.google.com 302 + [Host]