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...
...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"
txtField.Text = "No extra url parts."
...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.