Remove index.php from URL - Laravel
When accessing Laravel in browser, the URL contains "index.php" OR "public/index.php". Having these in URL is not a good SEO practice.
To remove "index.php" from URL, you can write a small code snippet in ".htaccess" file located at "public/" directory.
Method #1:
Add new User and Group, Set User Password - Linux
User(s) are very important part of any system. Below is how to add new user, assign password to user, add new Group in Linux using command line.
How to Backup MySQL Database - Part 2
In this part we'll see some advanced usage of mysqldump command.
Redirect User after login - Drupal 8
When building sites, many client wants users to get redirected to particular page (like Site Home Page) or page based on User Roles. Today we'll see how we can redirect user after login to particular page.
NOTE: I've defined my own custom page using [MODULENAME].routing.yml named as "custom.redirect_callback", which we'll be using for redirecting user.
UNIX vi commands cheat sheet - Part I
vi is default advanced editor available in majority of the UNIX Operating System. It stands for visual Editor. It becomes very useful when you're using Terminal and want to access/edit file on UNIX system. Following are some of the useful vi commands which can be used for quick editing of file.
How to auto start Services on boot - CentOS
Most of the services like httpd, mysqld, crond, etc. are setup to start on boot when we install them. If we want to add new services to auto start on boot, we can use chkconfig utility. Below is example to auto start memcached service on boot.
How to enable Gzip compression using htaccess
Gzip compression allows reducing file size when transferring from server to user browser. We can enable Gzip compression by writing few lines of code in .htaccess file.
For enabling Gzip compression, we need Apache's mod_deflate module enabled. If it is not already enabled, you can enable using the steps provided here.
How to Backup MySQL Database
Taking regular backup of database is very important part of project development. Here's how we can take a backup of database using terminal.