Answer the question
In order to leave comments, you need to log in
How to make a complex regular expression with logic?
Help me compose a regular expression for the script https://jsfiddle.net/mavj2kdr/
it is necessary to replace it differently if the character is present
Answer the question
In order to leave comments, you need to log in
will it go through .htaccess?
there will be 3 lines
RewriteCond %{HTTP_HOST} ^www\.www\.ru [NC]
RewriteCond %{REQUEST_URI} /users\.php$ [NC]
RewriteCond %{QUERY_STRING} !role=shop_manager [NC]
RewriteRule ^(.*)$ Куда_нужно_но_тут_с_гет_запросом [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.users\.php [NC]
RewriteCond %{QUERY_STRING} role=shop_manager [NC]
RewriteRule ^(.*)$ http://www.www.ru/users.php [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question