Page Additional URLs with @ symbol don't redirect

Posted by Community Admin on 03-Aug-2018 09:23

Page Additional URLs with @ symbol don't redirect

All Replies

Posted by Community Admin on 30-Jun-2016 00:00

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? 

Posted by Community Admin on 30-Jun-2016 00:00

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>

Posted by Community Admin on 01-Jul-2016 00:00

Thanks Victor that worked perfectly! 

This thread is closed