htaccess: Redirecting different domains with different conditions

Redirecting different domains with different conditions

When developing large applications you face some issues or get some requirements, that you have to fulfill for your clients. Same as one of our white label client demanded non SSL website. Where our production environment is running on HTTPS and we are redirecting non SSL to SSL forcefully with .htaccess As below. RewriteCond %{HTTPS}…

Debugging JavaScript with Firebug

debugging-with-firebug

To resolve the JavaScript error showing in Console and debug events bound to elements, you must have prior experience. This article is for those developers, who stuck when it comes to Debugging JavaScript conflicts or any error in Console. Many thanks to Firebug team, who gives their essential time developing an immensely beautiful addon. New…

AngularJS tutorial for jQuery Developers: Part1

AngularJS-tutorial-for-beginners

  Now a days AngularJS is getting popular among developers, many companies are changing their websites with AngularJS. Simple intro to AngularJS AngularJS is a JavaScript framework by Google. It’s used for making robust dynamic web apps. It handles all DOM and AJAX well written code. It can be used to create CRUD (Create, Read, Update, Delete)…

Database Installer

Database Installer performs installation of MySQL databases by php scripts. Features: Install mysql databases Check existence of tables in mysql database Delete existing mysql database Re-install mysql database and more. How to use? Step 1: Put all the files in a folder named database-installer as the file structure shown above Step 2: Replace the mysql.sql…

Quick patch : WP_User_Query orderby meta_value_num

This article is a quick patch/fix for orderby meta_value_num in WP_User_Query When you want to sort users by their meta key there is option, but if meta value is number and you want to sort them, then there is nothing like meta_value_num in WordPress (at the time or writing (WordPress 4.1 )) for WP_User_Query. So…