A
A
Anastasia2020-05-07 12:59:19
PHP
Anastasia, 2020-05-07 12:59:19

How to open a specific page from another folder?

Hello.
I have a site in Russian, and I translated this site into English and added it to the /En folder .

The site has a header that has a language switcher. And now the question is - I'm on the page /o_nas.php and when I click on the switch to English in the header, I need to open this page (and not just go to the En folder), that is, to open the page /o_nas.php page /about.php .
How to do it?
PS I understand that perhaps this approach is not correct, but we need to get out of what we have

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
felony13twelve, 2020-05-07
@felony13twelve

$_SERVER['REQUEST_URI'] + header

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question