Mono Support rewriting url for MonoX in subdir 

Viewed 10812 time(s), 3 post(s), 3/22/2012 3:07:20 PM - by gstadter
3/22/2012 3:07:20 PM
669 Reputation 67 Total posts

Testing different implementations of MonoX, I have a question regarding my current effort to test MonoX, as integrated into an existing .Net website...

Basically placed MonoX in a cms directory in a website, then converted folder to app in IIS.
I have membership working now, where it uses the membership from the parent website, but have a question about MonoX's urlrewriter...

The question:
Can I use the urlrewriter in Monox's web.config so that if users go to:
rootdomain.com/PageGroup1/TestPage1.aspx, the content delivered to them will actually be rootdomain.com/cms/pages/PageGroup1/TestPage1.aspx

The requirement being proposed is that I have separation of page groups, hence the 'pages' folder within MonoX's root(/cms), and the PageGroup1 subfolder, but have visitors not see the physical file structure; hide the '/cms/pages' part.

any input on this would be greatly appreciated.
-Gary

1
3/22/2012 9:16:53 PM
7207 Reputation 956 Total posts

Hi Gary,
I don't see any problems with this - sounds like the most basic URL rewriting scenario, at least if your parent site does not interfere with MonoX rules. Did you try to enter such URL rewriting rule into web.config?

2
3/24/2012 1:58:27 AM
669 Reputation 67 Total posts

First attempt didn't work...believe a rule in the parent app was adversely affecting my results. ...changed name of dir/app MonoX was installed in and got it working. Thanks, Denis, for at least chiming in and letting me know that you believed it would work, as described.

3
This is a demo site for MonoX. Please visit Mono Software for more info.