local updates before update from test, sitemap
This commit is contained in:
parent
10a29346a2
commit
38d46de73b
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,7 @@
|
|||||||
bitrix/*
|
bitrix/*
|
||||||
!bitrix/php_interface/init.php
|
!bitrix/php_interface/init.php
|
||||||
upload/
|
upload/
|
||||||
|
google*
|
||||||
|
robots.txt
|
||||||
|
sitemap*
|
||||||
|
.xml
|
||||||
@ -1,34 +0,0 @@
|
|||||||
Options -Indexes
|
|
||||||
ErrorDocument 404 /404.php
|
|
||||||
|
|
||||||
<IfModule mod_php.c>
|
|
||||||
php_flag session.use_trans_sid off
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfModule mod_php7.c>
|
|
||||||
php_flag session.use_trans_sid off
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
|
||||||
Options +FollowSymLinks
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-l
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
|
|
||||||
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
|
|
||||||
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfModule mod_dir.c>
|
|
||||||
DirectoryIndex index.php index.html
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfModule mod_expires.c>
|
|
||||||
ExpiresActive on
|
|
||||||
ExpiresByType image/jpeg "access plus 3 day"
|
|
||||||
ExpiresByType image/gif "access plus 3 day"
|
|
||||||
ExpiresByType image/png "access plus 3 day"
|
|
||||||
ExpiresByType text/css "access plus 3 day"
|
|
||||||
ExpiresByType application/javascript "access plus 3 day"
|
|
||||||
</IfModule>
|
|
||||||
@ -591,7 +591,6 @@ switch($PARAM_1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$post_event_name = "FORM_FILLING_".$_REQUEST['form'];
|
$post_event_name = "FORM_FILLING_".$_REQUEST['form'];
|
||||||
file_put_contents($_SERVER['DOCUMENT_ROOT']."/files.txt", var_export($attached_files, true));
|
|
||||||
|
|
||||||
CEvent::Send($post_event_name, "s1", $fields, "N", "", $attached_files);
|
CEvent::Send($post_event_name, "s1", $fields, "N", "", $attached_files);
|
||||||
}
|
}
|
||||||
@ -606,43 +605,46 @@ switch($PARAM_1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//HERE
|
//HERE
|
||||||
$url = API_HOST."/site/RequestFromSite";
|
if($form_code === "FORM_LEASING_REQUESTS")
|
||||||
|
{
|
||||||
|
$url = API_HOST."/site/RequestFromSite";
|
||||||
|
|
||||||
$payload = json_encode([
|
$payload = json_encode([
|
||||||
"region" => "Московская область",
|
"region" => "Московская область",
|
||||||
"name" => $REQ['FORM_FIELD_FIO'],
|
"name" => $REQ['FORM_FIELD_FIO'],
|
||||||
"phone" => $REQ['FORM_FIELD_PHONE'],
|
"phone" => $REQ['FORM_FIELD_PHONE'],
|
||||||
"email" => $REQ['FORM_FIELD_EMAIL'],
|
"email" => $REQ['FORM_FIELD_EMAIL'],
|
||||||
"org_title" => $REQ['FORM_FIELD_COMPANY'],
|
"org_title" => $REQ['FORM_FIELD_COMPANY'],
|
||||||
"brand" => $REQ['FORM_FIELD_BRAND'],
|
"brand" => $REQ['FORM_FIELD_BRAND'],
|
||||||
"model" => $REQ['FORM_FIELD_MODEL'],
|
"model" => $REQ['FORM_FIELD_MODEL'],
|
||||||
"modification" => $REQ['FORM_FIELD_MODIFICATION'],
|
"modification" => $REQ['FORM_FIELD_MODIFICATION'],
|
||||||
"price" => (int) $REQ['FORM_FIELD_PRICE'],
|
"price" => (int) $REQ['FORM_FIELD_PRICE'],
|
||||||
"prepaid" => (int) $REQ['FORM_FIELD_PREPAID'],
|
"prepaid" => (int) $REQ['FORM_FIELD_PREPAID'],
|
||||||
"term" => (int) $REQ['FORM_FIELD_TERM'],
|
"term" => (int) $REQ['FORM_FIELD_TERM'],
|
||||||
"redemption" => (int) $REQ['FORM_FIELD_REDEMPTION'],
|
"redemption" => (int) $REQ['FORM_FIELD_REDEMPTION'],
|
||||||
"utm_source" => null,
|
"utm_source" => null,
|
||||||
"utm_medium" => null,
|
"utm_medium" => null,
|
||||||
"utm_campaign" => null,
|
"utm_campaign" => null,
|
||||||
"utm_term" => null,
|
"utm_term" => null,
|
||||||
"utm_content" => null,
|
"utm_content" => null,
|
||||||
"page_url" => $REQ['FORM_FIELD_PAGE_URL'],
|
"page_url" => $REQ['FORM_FIELD_PAGE_URL'],
|
||||||
"page_name" => $REQ['FORM_FIELD_PAGE_NAME'],
|
"page_name" => $REQ['FORM_FIELD_PAGE_NAME'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$c = curl_init();
|
$c = curl_init();
|
||||||
curl_setopt($c, CURLOPT_URL, API_HOST."/site/RequestFromSite");
|
curl_setopt($c, CURLOPT_URL, API_HOST."/site/RequestFromSite");
|
||||||
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 30);
|
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 30);
|
||||||
curl_setopt($c, CURLOPT_TIMEOUT, 30);
|
curl_setopt($c, CURLOPT_TIMEOUT, 30);
|
||||||
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
|
||||||
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
|
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
|
||||||
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
|
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
|
||||||
curl_setopt($c, CURLOPT_POST, 1);
|
curl_setopt($c, CURLOPT_POST, 1);
|
||||||
curl_setopt($c, CURLOPT_POSTFIELDS, $payload);
|
curl_setopt($c, CURLOPT_POSTFIELDS, $payload);
|
||||||
curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
|
curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
|
||||||
|
|
||||||
$response = curl_exec($c);
|
$response = curl_exec($c);
|
||||||
curl_close($c);
|
curl_close($c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
|
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
|
||||||
$APPLICATION->SetTitle("Эволюция автолизинга");
|
$APPLICATION->SetTitle("Эволюция автолизинга. Лизинг автомобилей");
|
||||||
?>
|
?>
|
||||||
<? $APPLICATION->IncludeComponent(
|
<? $APPLICATION->IncludeComponent(
|
||||||
"evolution:slider.main",
|
"evolution:slider.main",
|
||||||
|
|||||||
72
robots.txt
72
robots.txt
@ -1,72 +0,0 @@
|
|||||||
User-Agent: * # правила для всех роботов
|
|
||||||
Disallow: /cgi-bin # папка на хостинге
|
|
||||||
Disallow: /bitrix/ # папка с системными файлами битрикса
|
|
||||||
Disallow: *bitrix_*= # GET-запросы битрикса
|
|
||||||
Disallow: /local/ # папка с системными файлами битрикса
|
|
||||||
Disallow: /*index.php$ # дубли страниц index.php
|
|
||||||
Disallow: /auth/ # авторизация
|
|
||||||
Disallow: *auth= # авторизация
|
|
||||||
Disallow: /personal/ # личный кабинет
|
|
||||||
Disallow: *register= # регистрация
|
|
||||||
Disallow: *forgot_password= # забыли пароль
|
|
||||||
Disallow: *change_password= # изменить пароль
|
|
||||||
Disallow: *login= # логин
|
|
||||||
Disallow: *logout= # выход
|
|
||||||
Disallow: */search/ # поиск
|
|
||||||
Disallow: *action= # действия
|
|
||||||
Disallow: *print= # печать
|
|
||||||
Disallow: *?new=Y # новая страница
|
|
||||||
Disallow: *?edit= # редактирование
|
|
||||||
Disallow: *?preview= # предпросмотр
|
|
||||||
Disallow: *backurl= # трекбеки
|
|
||||||
Disallow: *back_url= # трекбеки
|
|
||||||
Disallow: *back_url_admin= # трекбеки
|
|
||||||
Disallow: *captcha # каптча
|
|
||||||
Disallow: */feed # все фиды
|
|
||||||
Disallow: */rss # rss фид
|
|
||||||
Disallow: *?FILTER*= # здесь и ниже различные популярные параметры фильтров
|
|
||||||
Disallow: *?ei=
|
|
||||||
Disallow: *?p=
|
|
||||||
Disallow: *?q=
|
|
||||||
Disallow: *?tags=
|
|
||||||
Disallow: *B_ORDER=
|
|
||||||
Disallow: *BRAND=
|
|
||||||
Disallow: *CLEAR_CACHE=
|
|
||||||
Disallow: *ELEMENT_ID=
|
|
||||||
Disallow: *price_from=
|
|
||||||
Disallow: *price_to=
|
|
||||||
Disallow: *PROPERTY_TYPE=
|
|
||||||
Disallow: *PROPERTY_WIDTH=
|
|
||||||
Disallow: *PROPERTY_HEIGHT=
|
|
||||||
Disallow: *PROPERTY_DIA=
|
|
||||||
Disallow: *PROPERTY_OPENING_COUNT=
|
|
||||||
Disallow: *PROPERTY_SELL_TYPE=
|
|
||||||
Disallow: *PROPERTY_MAIN_TYPE=
|
|
||||||
Disallow: *PROPERTY_PRICE[*]=
|
|
||||||
Disallow: *S_LAST=
|
|
||||||
Disallow: *SECTION_ID=
|
|
||||||
Disallow: *SECTION[*]=
|
|
||||||
Disallow: *SHOWALL=
|
|
||||||
Disallow: *SHOW_ALL=
|
|
||||||
Disallow: *SHOWBY=
|
|
||||||
Disallow: *SORT=
|
|
||||||
Disallow: *SPHRASE_ID=
|
|
||||||
Disallow: *TYPE=
|
|
||||||
Disallow: *utm*= # ссылки с utm-метками
|
|
||||||
Disallow: *openstat= # ссылки с метками openstat
|
|
||||||
Disallow: *from= # ссылки с метками from
|
|
||||||
Disallow: /test/
|
|
||||||
Disallow: /temp/
|
|
||||||
Disallow: /evo/*
|
|
||||||
Allow: */upload/ # открываем папку с файлами uploads
|
|
||||||
Allow: /bitrix/*.js # здесь и далее открываем для индексации скрипты
|
|
||||||
Allow: /bitrix/*.css
|
|
||||||
Allow: /local/*.js
|
|
||||||
Allow: /local/*.css
|
|
||||||
Allow: /local/*.jpg
|
|
||||||
Allow: /local/*.jpeg
|
|
||||||
Allow: /local/*.png
|
|
||||||
Allow: /local/*.gif
|
|
||||||
# Укажите один или несколько файлов Sitemap
|
|
||||||
Sitemap: https://evoleasing.ru/sitemap.xml
|
|
||||||
Host: https://evoleasing.ru
|
|
||||||
Loading…
x
Reference in New Issue
Block a user