MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

rewriting url for MonoX in subdir  (Mono Support )

Viewed 9236 time(s), 3 post(s) 3/22/2012 3:07:20 PMby gstadter
gstadter

gstadter

3/22/2012 3:07:20 PM
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
This content has not been rated yet. 
669 Reputation 67 Total posts
denis

denis

3/22/2012 9:16:53 PM
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?
This content has not been rated yet. 
7207 Reputation 956 Total posts
gstadter

gstadter

3/24/2012 1:58:27 AM
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.

This content has not been rated yet. 
669 Reputation 67 Total posts