Hi All,
I have a page that I have called menu and the url for the page is mysite.com/menu.
I would like the modules on my menu page to load content according to this url...mysite.com/menu/starters where the 'starters' is the content filter.
So, I have added this to my siteurls.config file...
<RewriterRule>
<LookFor>.*/menu/([a-zA-Z0-9_-]+)</LookFor>
<SendTo>/menu</SendTo>
</RewriterRule>
...and sure enough when I run this code in a module on the menu page...
Dim url As String = Request.RawUrl
If url.Contains("menu/pig-skin") Then
txtField.Text = "pig-skin has been selected"
Else
txtField.Text = "No extra url parts."
End If
...the condition is met and 'pig-skin has been selected' shows.
So all works fine. Except, when I take the <RewriterRule> back out of the siteurls.config file, clear the cash then restart the application, everything runs exactly the same. I would of expected it to throw a Page cannot be found error. Why does it still work?
Thanks for your time with this.