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 why all the urls has a "/" at the end ? 

Viewed 2289 time(s), 2 post(s). 10 month(s) agoby super
super
1

super 10 month(s) ago

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. 
3526 Reputation 418 Total posts
imarusic
2

imarusic 10 month(s) ago

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. 
2094 Reputation 272 Total posts