Answer the question
In order to leave comments, you need to log in
htaccess......?
Friends! Please help me with htaccess.
There is a check.php file, the markup of which is:
<?php if ($_GET[par]==0) { ?>First condition<?php }; ?>
<?php if ($_GET[par]==1) { ?>Second condition<?php }; ?>
The .htaccess file has:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.____.ru$ [NC]
RewriteRule ^(.*)$ ____.ru/ $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 the address ____.ru/my-orders and when ____.ru/heck displays the second condition...
tell me how to fix...
Answer the question
In order to leave comments, you need to log in
RewriteRule ^about$ about.php
RewriteRule ^order$ order.php
RewriteRule ^my-orders$ check.php?par=0
RewriteRule ^check$ check.php?par=1
topic of evil =)
Using mod_rewrite is a very expensive operation.
IMHO, you should make a single entry point, and all these redirects should be processed by the application logic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question