soutsjjw
3/8/2019 - 8:12 AM

URL Rewrite - 網站強制導向另一網頁

<rewrite>
	<rules>
		<rule name="網站強制導向另一網頁" stopProcessing="true">
			<match url="(.*)" />
			<conditions>
				<add input="{REQUEST_URI}" pattern="^(/[a-zA-Z0-9]+/(.*))" />
			</conditions>
			<action type="Redirect" url="https://www.google.com.tw/" />
		</rule>
	</rules>
</rewrite>