Redirect admin area requests to HTTPS

import { Example } from "~/components";

This example single redirect for zone example.com will redirect requests for the administration area of a specific subdomain (store.example.com) to HTTPS, keeping the original path and query string.

When incoming requests match

Then

For example, the redirect rule would perform the following redirects:

Request URL Target URL Status code
http://store.example.com/admin/products/ https://store.example.com/admin/products/ 301
https://store.example.com/admin/products/ (unchanged) n/a
http://store.example.com/admin/?logged_out=true https://store.example.com/admin/?logged_out=true 301
http://store.example.com/?all_items=true (unchanged) n/a
http://example.com/admin/ (unchanged) n/a

版本号 #2
由 壳壳虫 创建于 2026-11-01 04:02:46 UTC
由 壳壳虫 更新于 2026-11-01 04:02:47 UTC