2

In my .htaccess file I have:

RewriteCond %{query_string} /home/?acc=home&ln=0
RedirectMatch (.*) http://www.newdomain.com/es/? [R=301,L]

RewriteCond %{query_string} /home/?acc=home&ln=1
RedirectMatch (.*) http://www.newdomain.com/fr/? [R=301,L]

My idea is:

Source: www.domain.com/home/?acc=home&ln=0 Destination: www.newdomain.com/es/

Source: www.domain.com/home/?acc=home&ln=1 Destination: www.newdomain.com/fr/

But my result is: www.newdomain.com/es/? www.newdomain.com/fr/?

How I can remove the "?" ?

1
  • 1
    Actually... can you mix things in mod_rewrite with mod_redirect? Commented Oct 19, 2012 at 9:48

1 Answer 1

1
RewriteCond %{query_string} /home/?acc=home&ln=1
RedirectMatch (.*) http://www.newdomain.com/fr/? <- surely it's the question mark on the end of your redirect?
Sign up to request clarification or add additional context in comments.

1 Comment

If I remove the question mark, the result is: www.newdomain.com/fr/?acc=home&ln=0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.