U
U
Uzair Izha2015-11-24 17:06:25
PHP
Uzair Izha, 2015-11-24 17:06:25

How to setup RewriteRule in .htaccess?

RewriteRule ^([-A-Za-z0-9_]+)$ /company/company.php?id=$1 [NC,L] # ссылка портфолио
     RewriteRule ^([-A-Za-z0-9_]+)$ /market/market.php?port=$1 [NC,L] # ссылка портфолио

The second entry does not work, the one above does. That is, if I change their places it will work, the one that costs 1. How to make them both work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton B, 2015-11-24
@bigton

How do you think RewriteRule using two exactly the same regular expressions ^([-A-Za-z0-9_]+)$ can determine where to send the request?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question