Saturday , February 22 2025

iryna

Hi there! My name is Iryna, I am a web developer from Ukraine. While working on freelance projects I often face different technical issues and in this blog I publish articles on how to solve them. I am also interested in digital drawing and in this blog you will find brief tutorials that helped me and hopefully can help you as well.

Correct transfer Drupal site from http to https

The certificate was purchased and activated, the site with https does not open correctly. The way to solve this problem: 1. In the file sites/default/settings.php find the line with $base_url. Under this line add: $conf['https'] = TRUE; $base_url = 'https://old.domain.com'; Replace the domain name with the actual one, and do …

Read More »

How to remove generator in Drupal 7

By default, the source code of Drupal sites contains the line <meta name=”generator” content=”Drupal 7 (http://drupal.org)” /> To remove it, you need to edit the file /sites/all/themes/mytheme/template.php (instead of mytheme, go to your site’s theme folder), find function shop_adaptive_html_head_alter and add before the closing character } this line: unset($head_elements['metatag_generator_0']); If …

Read More »

If the link contains another domain/subdomain

The task is relevant if hosting subdomains refer to the root of the main site, or if several domains are registered as aliases to each other. If you need to write noindex/nofollow etc., you can simply write a condition in index/header section: <?php $host = $_SERVER['HTTP_HOST']; if($host == "old.domain.com" or …

Read More »

How to change 302 to 301 redirect in Opencart

By default, OpenCart automatically enables 302 redirects. However, using 302 redirects is not ideal for SEO purposes because they indicate a temporary redirect. For better search engine optimization, it’s important to use 301 redirects, which signify a permanent move. This article provides a step-by-step guide on how to change 302 …

Read More »