So I have a content structure of Root -@ Folder -@ Content page. The natural URL for this is /foldername/pagename and I'm trying to figure out how to make it always just /pagename.I can make /pagename redirect to /foldername/pagename but it still shows as the latter in the address bar. I mucked around with URL rewrites in the web.config and I have this:@rule name="Content" stopProcessing="true"@
@match url="^Content/(.*)" /@
@action type="Rewrite" url="/{R:1}" /@
@/rule@
But it doesn't seem to do anything. Any ideas how I can setup my Kentico site to treat URLs as if /foldername doesn't exist at all?
↧