V
V
Vlad2015-11-06 16:04:11
PHP
Vlad, 2015-11-06 16:04:11

How to handle GET parameter in Datalife?

Hello.
There is a Datalife engine, it is necessary to write a code in the engine module that will work only when opening pages of the site with the GET parameter site.ru/?test1
But for some reason Datalife does not accept such GET parameters - when opening such a link, the $_GET array does not contain this variable .
How to handle GET parameter ?
Please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlikDex, 2015-11-06
@Sc0undRel

But for some reason Datalife does not accept such GET parameters - when opening such a link, the $_GET array does not contain this variable.

He even takes it very well. Do you have cnc turned on? Then, in the right place in htaccess, you need to add the [L,QSA] flag,
for example, in the categories:
# Категории
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]+)/page/([0-9]+)/?$ index.php?do=cat&category=$1&cstart=$2 [L,QSA]
RewriteRule ^([^.]+)/?$ index.php?do=cat&category=$1 [L,QSA]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question