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.

Removing /MonoX/Pages from the URL (Closed) (Mono Support )

Viewed 26773 time(s), 17 post(s) 2/15/2012 2:44:49 AMby sam0864
denis

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. 
7207 Reputation 956 Total posts
DavidGarcia

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

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. 
7207 Reputation 956 Total posts
DavidGarcia

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

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. 
7207 Reputation 956 Total posts
DavidGarcia

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
nasman

nasman

1/7/2014 1:08:23 PM
Hi I used following to remove MonoX from the URL

  <!-- Remove MonoX from pages' urls -->
      <rewrite url="^(.*)/Pages/(.*).aspx(\?(.+))?$" to="$1/MonoX/Pages/$2.aspx$3" name="PagePaths" urlPattern="/Pages/{PageName}.aspx/" />

But i can see following error for the following URL. 

http://localhost:59571/Pages/SocialNetworking/Discussion/dfilter/LastActiveTopics/Topic-Filter/?groupid=72GTbxsL9EK7fqBbASU0qg&groupname=test

Server Error in '/' Application.The resource cannot be found.Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /Pages/SocialNetworking/Discussion.aspx


any Suggestion please!!!


====

Just curious if any robust way to remove MonoX from the ULR of the whole website including everything like Discussions, blogs and forum and others...

The problem we are facing is that the suggested solution in this post is not working for everything and internal emails still using MonoX in the URL and as a result it giving error when user click. The discussions still showing MonoX specially Filter URL as i described above. 



This content has not been rated yet. 
845 Reputation 93 Total posts
1 2