O
O
oo22maxi2018-12-02 01:18:52
htaccess
oo22maxi, 2018-12-02 01:18:52

Is it possible to create your own "variable" in htaccess?

# Что бы не приходилось добавлять во всех правилах новые локализации (en|de|и т.д)
RewriteRule ^(en|de|и т.д)/$  index.php [L,QSA]

# а добавлять в одну «переменную» их, что то подобное
LANG = en|de|и т.д
RewriteRule ^(LANG)/$  index.php [L,QSA]

Can you do something similar?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question