WordPress – How to fully go from HTTP to HTTPS

If you’re having a WordPress website and you’re finally moving to HTTPS then this will be a quick and good read for you.

I had some troubles myself when recently moving from HTTP to HTTPS protocol on another website of mine..

So I want to share with you what I did to make everything work nicely on my WordPress installation.

Firstly, make sure your Hosting provider did install the certificate and it is working properly. When everything is set up on their end, you can continue with some small changes on your wordpress in order to fully go from http to https.

You can either install a WordPress Plugin that will help you achieve this or you can go and edit your .htaccess file on your wordpress installation and add the following code.

This will make sure everyone who enters the website is using the https protocol and redirecting them to it if they are using basic http.

This is pretty much it, thank you for reading !

Node.js Set cookies on HTTPS Requests

If you are not sure how to set up cookies with Node.js and HTTPS / HTTP requests to a specific page then this will definitely help you understand how you can do it.

I’ve confronted with this confusion too since I did not find much on the documentation of specific Node.js libraries that provide requests.

Lets say you have a Node.js https.get and you want to send a request to a specific page but you need a cookie in order to access that page for some reason. Here is how it should look :


If you want to send multiple cookies in one request then it would look something like this


Hope this helps you ! Have a nice day

How to Update XAMPP Version

XAMPP is a popular AMP ( Apache Mysql Php ) that is available for Windows, OS X and also Linux.

If you’re looking to update your XAMPP, meaning you you want to have a newer version of phpmyadmin, php ..etc then you’ve found the right place.

Updating the software without losing your content ( files or databases ) is pretty simple. I know I searched a lot for this just to find out that this can be done in just a few minutes.

After installing the newer XAMPP, you only need to copy and paste the htdocs and the mysql folder from the old installation to the new one.

You’re done, simple as that 🙂

Notice: If you had any other Apache configurations then you need to copy those too from the Apache folder

Get Minecraft Server Status with NodeJs Request

With this simple snippet and quick snipped you can get the status of your or other’s minecraft server just by entering 1 command line with NodeJs.

Keep in mind that you should have some basic understanding of NodeJs and a local installation where you can test out the code below.


You should also have installed the NodeJs Request library. The code above is basically sending a GET request to mcapi.us to get the current status of the minecraft server.

Run it like this:


Check if MySQLi extension is enabled with PHP

Checking if the MYSQLi extension is installed and enabled is pretty straight forward. We can call the function_exists() on a mysqli function and that will give us true or false, depending on the server, if it’s installed or not.

This can be quickly adapted to other usages, like checking for the GD Library extension or anything else.

How to Sell Your Work / Product on WordPress

If you’re a developer and / or you want to sell your digital products on the web then this is a great article for you.

WordPress, as you all know is very flexible and there are a lot of plugins that will allow you to do that.

So.. we’re gonna look into installing the plugin and setting up your first product selling page on wordpress.

Things you’ll need

The first thing is, of course, a WordPress website installation on a Webhost, somewhere and a Business Paypal Account. I’m saying business account because you will need some keys that are provided for the digital checkouts.

By the way, if you need a good webhost for your WordPress Website, check out HostGator ( thats what I currently use ) and get 25% discount using my coupon code FABIAN_HOSTGATOR

Get the plugin and install it

The next step is to get the WordPress Plugin and install it into your WordPress Website.I have used Paypal for Digital Goods in the past and that is what I’m gonna recommed.Of course you could use other plugins but for the sake of the tutorial, we’re gonna use that one.

You can get it by going to the official wordpress plugin page of Paypal for Digital Goods or installing it through the search plugin inside your wordpress.

Setting it up

After you’ve installed it in your WordPress you need to look in the Settings -> Paypal for Digital Goods like in the following picture and access it.


Right now you’ll see a screen where you will need to enter some data ( more exactly the API Details from your Paypal Business Account ).Here is how it should look like and what you should enter, keep in mind that this is required.


You can get that data by logging into your Paypal Account and click on the Profile Settings link


After that, click on Selling Tools





Ater this you will need to Request API Signature and click Submit. You will find the API Details there and you can copy paste them into the settings ( make sure you check the Live Mode box in the wordpress plugin settings page )

Generate the payment button

If you just scrolled down here, please read above how to set it up properly.If you think you’ve done it then please continue..

This plugin is based on Shortcodes, that means you can enter a little snippet in any Article or Post and generate a quick Payment Button from Paypal.

[paypal_for_digital_goods name="My PHP Script" price="50" url="http://domain.com/files-to-download.zip" button_text="Purchase"]

Just by looking at this code I believe you can understand what the parameters mean.

Required Parameters

  • name
  • price

Optional Parameters

  • quantity
  • currency – Possible Values: ‘USD’, ‘GBP’ etc
  • url – the download link for the product after someone finishes the order
  • button_text – the text of the paypal payment button

Thats all for now, thank you for reading my tutorial and I hope this was / will be useful for you !