Page Additional URLs with @ symbol don't redirect
We don't know how this happened but we seem to have links pointing to our customer's site which have email addresses in them.
We're trying to redirect these to the branch page but it's not working.
URL Example: mysite.com/.../branch@mysite.com
In the additional URLs section we added:
~/office/branch@mysite.com
And selected the option to redirect (301). But it doesn't work.
Is there a way that we can make this work?
Hi Jacques
You can create this redirect rule in you web.config
<
rule
name
=
"request with email /office/branch@mysite.com"
stopProcessing
=
"true"
>
<
match
url
=
"^office/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]2,4$"
/>
<
action
type
=
"Redirect"
url
=
"office"
/>
</
rule
>
Thanks Victor that worked perfectly!