Linux

Permanent redirect (301) with .htaccess

To set a permanent redirection from with example.com and www.example.com to example1.com, the following code shall help you RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteRule ^(.*)$ “http\:\/\/example1\.com\/$1″ [R=301,L] Just put the above code in the .htaccess file  under example.com by replacing the domains as per your need …

Read More »

Force HTTPS using .htaccess file

The following redirect rules can be used in the .htaccess for permanently redirecting http to https (secure connection) in Apache with SSL. RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] or RewriteEngine on Options +FollowSymLinks RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://www.%{SERVER_NAME}%{REQUEST_URI} [L,R]

Read More »

Seven “must read” Linux tutorials

If you’re going to have long relations with Linux Operating System and use it as efficiently as possible I suggest to read the following howtos and guides that will help you on the way to advanced Linux user status .. 🙂 Advanced Bash-Scripting Guide by Mendel Cooper This document is both a tutorial …

Read More »

10 Ubuntu Apps For Daily Life

Working from my Ubuntu desktop all day has given me an interesting perspective into what works and what doesn’t when it comes to applications. In this article, I will offer you a roundup of software titles that enable me to make my day a more productive one. These applications range …

Read More »

How To Lock/Unlock User Accounts From The Terminal Under Ubuntu/Linux Mint

In this post, we will see how to lock or unlock a specific user account from the terminal using two methods. Method 1 (Recommended)To lock a user account, open the terminal and run this command: sudo usermod –expiredate 1 username Replace username with the user account name you want to disable. The user …

Read More »

How To Add/Remove Users Accounts From The Terminal On Ubuntu 12.10/12.04/Linux Mint 13

In this tutorial, we will see how to create/remove user accounts using the terminal under Ubuntu/Linux Mint. I will also show you how to add a specific user to the “sudo” group so that you allow it to run sudo commands, but be careful in using this because granting a …

Read More »