How to install redirect using .htaccess from the main page / to internal /v2 ? How to do it so that with /index.php redirect to /v2 ? At the same time, Joomla is installed in the root of the site.

Attempt to set a redirect like this:

 Redirect / http://site.ru/v2 

leads to endless redirects that stop at about

 http://site.ru/v2/v2/v2/v2/v2/v2 

At the same time, http://site.ru/v2 stops opening, even if you contact it directly.

In /v2 lies the autographic saytik, i.e. This part of Jooml is not controlled.

  • RewriteEngine on? - SVgroup
  • Such kind of answers are made out as comments to the question. - ssh

2 answers 2

 RewriteEngine on RewriteRule ^(.*)$ /v2/ [L,QSA] 

    Decided thus:

     RewriteEngine on RewriteRule ^$ /v2/ [L]