Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to redirect the request to a different site by checking whether the cookie "MY_cookie" is set or not. If its set, redirection should happen.

This is the code that i am currently using, But not working.

RewriteCond %{HTTP_COOKIE} MY_cookie=([^;]+)
RewriteRule ^$ http://another.website.com [R=301,L,qsappend]

What is the solution. ?

Thank you

share|improve this question
1  
But not working is an excellent way to describe how something isn't working. – N.B. 23 mins ago
My car won't start. What is the solution? – Kees Sonnema 19 mins ago
@N.B. Thank you , Any idea how it can be resolved ? – Vinod 18 mins ago
1  
@KeesSonnema This might help you . autorepair.about.com/od/troubleshooting/a/ts_no-start.htm – Vinod 17 mins ago
Thanks @Vinod that helped :D +1 – Kees Sonnema 16 mins ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.