M
M
maiskiykot2018-07-31 14:26:52
Apache HTTP Server
maiskiykot, 2018-07-31 14:26:52

How to correctly set the base locale in htaccess for localhost?

Suddenly got ambushed. There is a bilingual project. On hosting, it works great with the formation of English-language pages using the en/ pseudo-directory. However, on localhost, the same htaccess directives give errors and are not executed. Those. rules like this don't work:

RewriteRule ^en/(.*)$ http://localhost/site/$1 [QSA,L]

I suspect that RewriteBase /. How to fix?

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