I want to make a .htaccess file that when URL is ru/, it gets redirected to the ru/ directory and if the URL is anything else, go to the public/ directory.
To redirect everything to public dir except /ru , you can use the following rule
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/ru [NC]
RewriteRule !public /public/ [L]