B
B
B0nG2017-10-27 13:51:52
PHP
B0nG, 2017-10-27 13:51:52

How to redirect the entire site?

Hello. There is a site on 1C Bitrix with an infinite number of sections and pages, changing it manually is not an option.
It is necessary to make sure that when entering any page, absolutely any page, the page is updated and the GET parameter is added.
Example:
A person went to the test.ru/about.php page, you need to immediately transfer the person to the same page but with a get, test.ru/about.php/?thisis=parameter. Does anyone see such a solution?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Serezha, 2017-10-27
@B0nG

Edit rewrites in htaccess (Apache, right?).

R
Roman Kalinger, 2017-10-27
@kalinger_roman

In index.php at the very top. In theory it should help.

header('Location: '.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'].'/?thisis=parameter');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question