Is it possible to give a language prefix to all the nodes without third-party modules? I have a site with about 500 pages (nodes, taxonomy pages, and some views) which are all in Hebrew.
I want to make all paths from, for example, /node/example1 or /taxonomy/categories/term1 to /he/node/example1 or /he/taxonomy/categories/term1.
I want it for all the pages, as a first stage in turning this site to be a sub-site (with a sub-domain).
Is this possible 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]