Mono 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.

Mono Support Removing /MonoX/Pages from the URL 

Viewed 16113 time(s), 16 post(s). 2/15/2012 2:44:49 AMby sam0864
denis
11

denis 4/9/2012 5:21:25 PM

You don't want to have tag links at all, or you want to replace their format with something different (if so, what would be the new format)?
This content has not been rated yet. 
6785 Reputation 874 Total posts
DavidGarcia
12

DavidGarcia 4/9/2012 5:48:19 PM

Hello,

For example want to do something like this:

Replace Urls with the format:

localhost/MonoX/Pages/Features.aspx
or
localhost/MonoX/Pages/MonoX/Confirmation.aspx


to something like this:

localhost/MyDomain/Pages/Features.aspx
localhost/MyDomain/Pages/MyDomain/Confirmation.aspx

Basically is just replace the /MonoX/ Tag with another tag, just like /MyDomain/
This content has not been rated yet. 
659 Reputation 84 Total posts
denis
13

denis 4/9/2012 6:02:48 PM

Does "MyDomain" needs to be passed to your pages as a parametar? I'm asking because these page URLs are not rewritten and you can basically do whatever you want with them, including removal of the "MonoX" part altogether - in other words, you don't have to inlude MyDomain if it is not important for some reason. 
This content has not been rated yet. 
6785 Reputation 874 Total posts
DavidGarcia
14

DavidGarcia 4/9/2012 8:00:16 PM

No its not necessary we just want to remove the /MonoX/ tags of the projects.

Regards.
This content has not been rated yet. 
659 Reputation 84 Total posts
denis
15

denis 4/10/2012 4:08:40 PM

You can either:
- physically move those pages to some other folder (their URLs are not rewritten by default)
- use the rewriting rule like this one to rewrite the /MonoX/ part in the URL
<rewrite url="^(.*)/Pages/(.*).aspx(\?(.+))?$" to="$1/MonoX/Pages/$2.aspx$3" name="PagePaths" urlPattern="/Pages/{PageName}.aspx/" />

This content has not been rated yet. 
6785 Reputation 874 Total posts
DavidGarcia
16

DavidGarcia 4/11/2012 1:55:03 PM

Hello,

This solution worked fine indeed but i have a few other questions that i would like to ask, so for that i will follow this topic on the priority Support Forum, again thanks for your great support.

Regards.
This content has not been rated yet. 
659 Reputation 84 Total posts
1 2