what have you tried so far and what were the results?
Somehow it does not work out.
please describe this in more detail. look for clues in your web server access and error log files.
lucy24
10:41 pm on Jun 29, 2020 (gmt 0)
i want to redirect
Do you mean only this one specific redirect, or do you mean that blahblah?some-exact-query
is to be redirected to some-new-queryless-url ?
mrpietersen
7:19 am on Jun 30, 2020 (gmt 0)
I want to redirect an exact match with the url. So http://example.com/declareren/?md needs to be redirected to http://example.com/declareren/
So an url with a query to a queryless one.
I already tried: Redirect 301 /declareren/?md http://example.com does not work obviously.
also tried it with redirect condition. But I can't find the correct setup for this. something like below, but all documentation is about query strings in the URL (like ?id=123)
- you can make things more efficient by testing the URI string in the RewriteRule. the Pattern of the RewriteRule is tested before any RewriteCond directives are run.
- for a 301 redirect, the Substitution string should contain the full protocol and hostname.
- end the Substitution string with a question mark to erase the existing query string from the redirected url
- the <IfModule mod_rewrite.c> envelope is unnecessary in your environment since you already know you have mod_rewrite installed.