Need help: urlencoded Umlaut & special characters
-
cappu
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 8
-
Thank you received: 0
-
-
11 years 8 months ago #773
by cappu
Hi Luigi,
I use the following statement to redirect old links to a new location:
/artikelsuche\?aktion=ssuche&swort=(.)*$
This works well in most cases like this:
/artikelsuche?aktion=ssuche&swort=tintenpatronen
...even with German Umlaut:
/artikelsuche?aktion=ssuche&swort=nachgefüllten
...but not, if there are urlencoded Umlaut or some other special characters like a plus-sign (+) involved:
/artikelsuche?aktion=ssuche&swort=nachgef%FCllten
/artikelsuche?aktion=ssuche&swort=fs-1800-+-n
Any ideas?
Thanks for your help (and thanks very much for the awesome latest ReDJ upgrade!!!).
Kind regards,
Bernhard
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 8 months ago #775
by admin
Hi Bernhard,
consider that the request on your server is always sent encoded from the browser.
So you can write the rule to work with the URL encoded, or can use "natural" request, but in this case you need to check "decode URL" flag in the rule.
That's all.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
cappu
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 8
-
Thank you received: 0
-
-
11 years 8 months ago #776
by cappu
Hi Lugi,
I did that before and checked the "deccode URL" flag - but it still won't work.
Kind regards,
Bernhard
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 8 months ago #777
by admin
Post the URL as you call in the browser, pls. You can drop the domain part..
Please Log in or Create an account to join the conversation.
-
cappu
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 8
-
Thank you received: 0
-
-
11 years 8 months ago #778
by cappu
For instance these - see my first post:
/artikelsuche?aktion=ssuche&swort=nachgef%FCllten
/artikelsuche?aktion=ssuche&swort=fs-1800-+-n
No problem on this one:
/artikelsuche?aktion=ssuche&swort=nachgefüllten
Thanks for any hint...
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 8 months ago #779
by admin
Ok,
try this:
From URL: ^/artikelsuche\?aktion=ssuche&swort=nachgef%FCllten
Request only: true
Decode URL: false
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.188 seconds