I am trying to create a multilanguage website. And I have set my home page to a static page in my WP admin area.
This home page ID is 2 and it calls
front-page.php template when I am on the home page at this address, for example,
So for a french version, I have added a new rewrite rule so I have this url,
http://examplesite.com/fr/, and its call the same home page which is ID 2.
add_rewrite_rule( '^fr/?$', 'index.php?&p=2&lang=fr', 'top' )
But why it calls
index.php template instead but not
How can I make
http://examplesite.com/fr/ to call