Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I'm trying to have something like /faq/?thematique=xxxxxxx to be displayed as /faq/xxxxxx.
Here is my rule in the UrlRewriting.config file :
<add name="urlRewriteFaq" virtualUrl="^~/faq/(.*)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/faq/?thematique=$1" ignoreCase="true" />
It is working if "xxxxx" is just a word, but if there is a space which is encoded as a '+', then I'm getting a 404 error for /faq/xxxx+xxx. The regex should get everything (.*), so I d'ont know how I can resolve this issue.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Url Rewriting and UrlEncode
Hi,
I'm trying to have something like /faq/?thematique=xxxxxxx to be displayed as /faq/xxxxxx.
Here is my rule in the UrlRewriting.config file :
<add name="urlRewriteFaq"
virtualUrl="^~/faq/(.*)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/faq/?thematique=$1"
ignoreCase="true" />
It is working if "xxxxx" is just a word, but if there is a space which is encoded as a '+', then I'm getting a 404 error for /faq/xxxx+xxx. The regex should get everything (.*), so I d'ont know how I can resolve this issue.
is working on a reply...