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 )

11145 put(a) pogledan, 3 odgovor(a) 22.3.2012. 15:07:20Kreirao(la) gstadter
gstadter

gstadter

22.3.2012. 15:07:20
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
Ovaj sadržaj još nije ocijenjen. 
669 Reputacija 67 Ukupno objava
denis

denis

22.3.2012. 21:16:53
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?
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava
gstadter

gstadter

24.3.2012. 1:58:27
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.

Ovaj sadržaj još nije ocijenjen. 
669 Reputacija 67 Ukupno objava