Is it possible to give a language prefix to all the nodes without third-party modules?
These are the rewrite rules to add in the .htaccess file located in the Drupal root directory.
RewriteEngine on
RewriteCond %{REQUEST_URI} !/he
RewriteRule ^(.*) http://www.domain.com/he%{REQUEST_URI} [L,R=301]