i am creating a website by two language with php. to change language of pages , i create to link like this:
<a href="/?lang=fa">FA</a>|<a href="/?lang=en">EN</a>
this two link is on a page named header.php that includes on some page.but in some pages is some parameters that send via URL . So that two link are not true and they Should be as follows:
<a href="aPage.php?id=1&lang=en">FA</a>|<a href="aPage.php?id=1&lang=en">EN</a>
my Question is how i create a dynamic links for all page Even if have some parameters.
You could use: