O
O
Oleg Voitenko2019-01-14 18:34:53
htaccess
Oleg Voitenko, 2019-01-14 18:34:53

How to correctly write an exception rule for a redirect?

Hello! I can’t figure out what I’m writing crookedly in the .htaccess file
. Actually, the rule itself:

RewriteEngine On
RewriteCond %{QUERY_STRING} !^route=checkout/success$
RewriteRule ^uk/index(.*)$ https://domain.com.ua/uk/simplecheckout/? [R=301,L]

The task is to redirect to https://domain/uk/index.php?route=checkout/success
when placing an order in ocstore In all other cases, to https://domain.com.ua/uk/simplecheckout/
Redirect works, but there is no exception ((
What is wrong in the code? And how is it right?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question