mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Explict set URL Redirect Module mode
This commit is contained in:
parent
5edfa737ba
commit
32f605b771
@ -143,8 +143,8 @@ export const buildRedirectModule = task(require.main === module, __filename)(asy
|
|||||||
`hostname = %APPEND% ${domains.join(', ')}`,
|
`hostname = %APPEND% ${domains.join(', ')}`,
|
||||||
'',
|
'',
|
||||||
'[URL Rewrite]',
|
'[URL Rewrite]',
|
||||||
...REDIRECT_MIRROR.map(([from, to]) => `^https?://${escapeRegExp(from)}(.*) ${to}$1`),
|
...REDIRECT_MIRROR.map(([from, to]) => `^https?://${escapeRegExp(from)}(.*) ${to}$1 header`),
|
||||||
...REDIRECT_FAKEWEBSITES.map(([from, to]) => `^https?://(www.)?${escapeRegExp(from)} ${to}`)
|
...REDIRECT_FAKEWEBSITES.map(([from, to]) => `^https?://(www.)?${escapeRegExp(from)} ${to} 307`)
|
||||||
],
|
],
|
||||||
path.resolve(__dirname, '../Modules/sukka_url_redirect.sgmodule')
|
path.resolve(__dirname, '../Modules/sukka_url_redirect.sgmodule')
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user