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

Express NodeJS – How to redirect HTTP to HTTPS?

Feb 08, 2019 - by kurinchilamp / / Post Comment
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 redirect HTTP website to HTTPS in Laravel?

Jan 03, 2019 - by kurinchilamp / / Post Comment
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 / / Post Comment
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

TECHNOLOGY DEV STACK

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