Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...


Adding rewrite rules to web.config...... not working

I am adding rewrite rules to my site but none of them seem to be executing. Is it possible that an aspdnsf function is causing some kind of interference?

  <rule name="Support Rewrite" stopProcessing="true">
          <match url="^support/$" />
          <action type="Rewrite" url="/topic/support/" appendQueryString="false" />

 I wanted to start off with a simple rule and that is not even working. 


I am using version: 10.0.7

asked Dec 13, 2017 in MultiStore by rayrod85 (120 points)

1 Answer

0 votes

That isn't formatted quite right.  If you're going for /support/*anything* seeing the contents of /topic/support, you need this:

<rule name="Support Rewrite" stopProcessing="true">
	<match url="^support/(.*)" />
	<action type="Rewrite" url="topic/support" appendQueryString="false" />

That assumes that you have a topic named 'support' of course.

If you want the customer to actually be forwarded to the new URL so the address in their address bar changes, change "Rewrite" to "Redirect".

answered Dec 20, 2017 by Vortx ScottS (13,500 points)