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.

why all the urls has a "/" at the end ?  (Mono Support )

Viewed 12235 time(s), 2 post(s) 7/30/2012 1:11:29 AMby super
super

super

7/30/2012 1:11:29 AM
These days the url is an important thing and it needs to be simple especially profile url something like "www.domain.com/Name" but monoX profile urls are like this "http://monox.mono-software.com/profile/MarkT/"

Why this "/" at the end ? any way to get rid of it ? I know monoX is webforms based, is that the reason ?

Why this does not work "http://monox.mono-software.com/profile/MarkT" ? (even if anyone do not put "/" sign at the end, it should work ? any thoughts ?

This content has not been rated yet. 
6018 Reputation 709 Total posts
imarusic

imarusic

7/30/2012 5:57:22 PM
Hi super,

someone from our support team will provide you with more details regarding url rewriting rules, but in meanwile you can enable url rewriting rule as per your choice and it will work without "/" at the end:

old:
 
 
<rewrite url="^(.*)/profile/(.*)/(\?(.+))?$" to="$1${SocialNetworkingFolder}UserProfile.aspx?UserName=$2&$4" name="Profile" urlPattern="/profile/{UserNameUrlEncoded}/"/>

new:
 
 
<rewrite url="^(.*)/profile/(.*)/?(\?(.+))?$" to="$1${SocialNetworkingFolder}UserProfile.aspx?UserName=$2&$4" name="Profile" urlPattern="/profile/{UserNameUrlEncoded}/"/>

This is an example for user profile url rewriting.

Regards.


This content has not been rated yet. 
3016 Reputation 428 Total posts