H
H
hdtor2016-04-03 12:56:04
htaccess
hdtor, 2016-04-03 12:56:04

How to fix in .htaccess?

There is such a line in htaccess:
RewriteRule ^(ua|ru|)?/?(.*)$ $2?lang=$1
It finds out what language the user has requested and already gives out the information he needs.
There is a problem
1: mysite.com/ua - it works
2. mysite.com/ru - it works
3. mysite.com/zdes_chto_nibyd - then I get an Internal Server Error, can I somehow assign a value that is not necessary to ru or ua?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2016-04-04
@shambler81

whole file here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question