Commit 9257002b09262cb825bef3db349bef2da36673b8
1 parent
ba700918
update 301 redirect /cabinet + nofollow | delete link /callback
Showing
2 changed files
with
6 additions
and
3 deletions
Show diff stats
src/app/frontend/controllers/CustomerController.php
... | ... | @@ -485,7 +485,7 @@ class CustomerController extends \controllers\ControllerBase |
485 | 485 | { |
486 | 486 | if( !$this->session->get('isAuth') ) |
487 | 487 | { |
488 | - return $this->response->redirect([ 'for' => 'customer_login', 'language' => $this->lang_name ]); | |
488 | + return $this->response->redirect([ 'for' => 'customer_login', 'language' => $this->lang_name ],true,301); | |
489 | 489 | } |
490 | 490 | |
491 | 491 | $customer = $this->models->getCustomers()->getCustomer( $this->session->get('id') ); | ... | ... |
src/app/frontend/views/index.php
... | ... | @@ -6,11 +6,14 @@ |
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
7 | 7 | <?php |
8 | 8 | if (preg_match("/page/i", $_SERVER['REQUEST_URI']) && !preg_match("/prof_tips/i", $_SERVER['REQUEST_URI'])) { |
9 | - echo "<link rel='canonical' href='http://".$_SERVER['HTTP_HOST'].$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3']))."?all=1'>"; | |
9 | + echo "<link rel='canonical' href='http://".$_SERVER['HTTP_HOST'].$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3']))."?all=1'>"; | |
10 | 10 | } |
11 | 11 | if (preg_match("/sort-/i", $_SERVER['REQUEST_URI'])) { |
12 | 12 | echo "<meta name=\"robots\" content=\"noindex, follow\"/>"; |
13 | 13 | } |
14 | + if(preg_match("/customer_login/i", $_SERVER['REQUEST_URI'])){ | |
15 | + echo "<meta name=\"robots\" content=\"noindex, nofollow\"/>"; | |
16 | + } | |
14 | 17 | ?> |
15 | 18 | <title><?= !empty( $meta_title ) ? $meta_title : \config::get( 'global#title' ) ?></title> |
16 | 19 | <?= !empty( $meta_link_next ) ? $meta_link_next : '' ?> |
... | ... | @@ -105,7 +108,7 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; |
105 | 108 | <div class="contact_mob_phones"> |
106 | 109 | <span class="small_digits">(093)</span><span> 026-86-64</span> |
107 | 110 | <div style="float:right;font-size:12px;margin-right:65px;" class="contact_callback_phones"> |
108 | - <a href="<?= $this->seoUrl->setUrl('/callback') ?>" class="callback" title="<?= $t->_("Feedback")?>" id="ajax_simple" data-options="width: 940, height: 400" target="<?= $this->seoUrl->setUrl( $this->url->get([ 'for' => 'callback' ])) ?>" data-type="ajax"><?= $t->_("Feedback")?></a> | |
111 | + <a href="#" class="callback" title="<?= $t->_("Feedback")?>" id="ajax_simple" data-options="width: 940, height: 400" target="<?= $this->seoUrl->setUrl( $this->url->get([ 'for' => 'callback' ])) ?>" data-type="ajax"><?= $t->_("Feedback")?></a> | |
109 | 112 | </div> |
110 | 113 | </div> |
111 | 114 | </div> | ... | ... |