Friends! Please help to deal with htaccess.

There is a file check.php the layout of which:

The first condition

The second condition

File .htaccess has:

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} ^$ [NC]

RewriteRule ^(.*)$ ____.EN/$1 [R=301,L]

RewriteRule ^about about.php

RewriteRule ^order order.php

RewriteRule ^my-orders check.php?par=0

RewriteRule ^check check.php?par=1

when writing an address ____.EN/my-orders and ____.EN/heck displays the second condition...

tell me how to fix it...
October 8th 19 at 03:18
5 answers
October 8th 19 at 03:20
RewriteRule ^about$ about.php<br / > RewriteRule ^order$ order.php<br / > RewriteRule ^my-orders$ check.php?par=0<br> RewriteRule ^check$ check.php?par=1<br>
Thank you very much! With me chocolate ))) - kathleen.Fe commented on October 8th 19 at 03:23
October 8th 19 at 03:22
the topic of evil =)

Use mod_rewrite - a very expensive operation.

IMHO you should do a single point of entry, and all of these redirects to handle the application logic.
October 8th 19 at 03:24
And it is better so:
$_GET[par] -> $_GET['par']
October 8th 19 at 03:26
<?php if ($_GET[par]=='1'): ?>The second condition<?php endif; ?>
Unfortunately not and this is not helping. - kathleen.Fe commented on October 8th 19 at 03:29
October 8th 19 at 03:28
when writing an address ____.EN/my-orders
triggered the condition
RewriteRule ^my-orders check.php?par=0
and transfers the execution check.php?par=0 again passing through .htaccess and the rule
RewriteRule ^check check.php?par=1

Find more questions by tags htaccess