• support[@]kurinchilion.com
  • +1 (888) 666-4252

MySQL garbled data due to UTF-8 double encoding

Mar 18, 2019 - by kurinchilamp 392 Views
For example, you may have table with varchar, text or longtext fields and you may see garbled data in it. Though the text appears correctly on web pages, inside MySQL junk characters may appear. CREATE TABLE `my_news` ( `nid` bigint(10) NOT NULL DEFAULT '0', `title` text, `short_news` longtext) ENGINE=MyISAM DEFAULT CHARSET=utf8; In order to correct this error, try to alter the table in the following sequence. (more…)
Continue Reading

Express NodeJS – How to redirect HTTP to HTTPS?

Feb 08, 2019 - by kurinchilamp 337 Views
In order to redirect HTTP to HTTPS in express server, try adding the following lines to your code base. app.set('trust proxy', 1); app.use(function(req, res, next) { if (! req.secure){ res.redirect("https://" + req.headers.host + req.url); } return next(); });
Continue Reading

How to change WordPress admin password in MySQL?

Jan 05, 2019 - by kurinchilamp 420 Views
Step 1: Identify the user id for which you want to change the password Step 2: Issue the below MySQL command to update the password for the selected user update wpgi_users set user_pass=MD5('yourpasswordgoeshere') where wpgi_users.id=1
Continue Reading

How to redirect HTTP website to HTTPS in Laravel?

Jan 03, 2019 - by kurinchilamp 423 Views
In order to force redirection of your website developed in Laravel from HTTP to HTTPS, you can try adding the following rules in .htaccess file. <fModule mod_rewrite.c> Options -Indexes RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteRule ^(.*)$ public/$1 [L] </IfModule> Next, look at .env file and modify the value for APP_URL parameter APP_URL=https://yoursite.com
Continue Reading

How to redirect HTTP links to HTTPS in WordPress (Apache)?

Jan 01, 2019 - by kurinchilamp 359 Views
In order to force redirection of your Wordpress website from HTTP to HTTPS, the key task that you will need to do is to modify .htaccess file that is present in the root of the website directory. If you check your wordpress install, you will have the following code by default in your .htaccess file. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # BEGIN WordPress RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> (more…)
Continue Reading

Git: How to add an untracked file back to the repository?

Oct 02, 2017 - by kurinchilamp 423 Views
If you want to add certain files that was previously removed from Git repository, follow the steps given below. STEP 1: remove the file reference in .gitignore STEP 2: remove the cached reference from git. $ git rm --cached sampleconfig.txt (more…)
Continue Reading

TECHNOLOGY DEV STACK

Following are some of the technologies that we use to build and maintain solutions for our clients.