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 Rewrite URL 

Viewed 1737 time(s), 2 post(s). 11 month(s) agoby mdaly
mdaly
1

mdaly 11 month(s) ago

Hi,

I am trying to rewrite a url which will take users to the messages page, but I cannot get it to work.

In the linkbutton I have the following: NavigateUrl="/monox/Messages/"

In the web.config file i have included the following code: <rewrite url="^(.*)/Messages/$" to="$1${SocialNetworkingFolder}/Messages.aspx" />

Can anybody help with this as I am eager to get this working asap.

Thank you.
This content has not been rated yet. 
93 Reputation 8 Total posts
imarusic
2

imarusic 11 month(s) ago

Hi mdaly,

you can try with this example:

<rewrite url="^(.*)/monox/message/(\?(.+))?$" to="$1/Pages/message.aspx/&amp;$3" name="Message" urlPattern="/monox/message/"/>

Regards,
This content has not been rated yet. 
2094 Reputation 272 Total posts