Hi,
Our web team want to implement subdirectories for languages, but due to conflicting needs we have to implement the directories before the development work has been done.
So, what I'm ideally after is a way of using URL re-write tomap
http://www.domain.com/eb-gb/some/path/page.aspx to http://www.domain.com/some/path/page.aspx
without changing the URL. i.e. mask the "true" page under the new directory.
I've tired using:
<rule name="test" enabled="true" stopProcessing="true"><match url="/en-gb/(.*)" /><conditions></conditions><action type="Rewrite" url="/{R:1}" /></rule>
But this causes strange errors
XML Parsing Error: not well-formed Location: http://www.url.dev/en-gb/default.aspx Line Number 13, Column 37: <div id="wrapper" itemscope itemtype="http://www.schema.org/Organization"> ------------------------------------^
Does anyone have any suggestions?
Thanks