To do this, you need to enable mod_proxy in your Apache configuration. After mod_proxy is enabled, enable mod_rewrite and .htaccess through httpd.conf, and then put this code in .htaccessa directory DOCUMENT_ROOT:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.exaple\.cz$ [NC]
RewriteRule ^(hu)/?$ http://www.exaple.$1 [L,P,NC]