Add new query variable to wordpress url

Today, I just want to share with you an useful tip, this will help you add new query variable to wordpress url. To understand what i mean, please read following example.

For an example:

I have an url like this

Then i want to add some custom queries which i want use for my purposes as loading a custom page, redirecting to new location, display a popup, etc …

New query: price

Now, How to add new query:

Add following function to functions.php file of your template (locates at root of template folder)

add_filter('query_vars', 'add_my_var');
function add_my_var($qvars) {
$qvars[] = 'some_unique_vars';
return $qvars;

Continue reading “Add new query variable to wordpress url”

How to remove category base from wordpress permalinks

Some of webmasters may want to remove category base from wordpress urls. Example:

From “” to “”

The “/category/” will be removed. So you can access your categories with shorter urls without “category” word. You can do that manually by adding new redirect rules to .htaccess but WordPress already has a plugin which will help you.

Name of that plugin is: WP No Category Base

Wp No Category Base Features :

  1. Better and logical permalinks like and
  2. Simple plugin – barely adds any overhead.
  3. Works out of the box – no setup needed.
  4. No need to modify wordpress files.
  5. Doesn’t require other plugins to work.
  6. Compatible with sitemap plugins.
  7. Compatible with WPML.
  8. Works with multiple sub-categories.
  9. Works with WordPress Multisite.
  10. Redirects old category permalinks to the new ones (301 redirect, good for SEO).

Thank you.

Gaming Websites Scripts

Currently, I’m working on some gaming websites projects, my first impression is very interesting. With gaming websites, everyone can play free flash games without installing anything, just open your web browser, choose a game then play, very simple like that. When i started my gaming project, gaming script is the first thing i was looking for because i’m not a coder and i didnt plan to hire someone to create a custom script. After searching around with google and webmaster forums, i found out a list of gaming scripts which i want to share with you today. Almost of them are developed with PHP and Mysql database, included some common features such as:
– Import games manually/automatically.
– Fetch games from popular gaming websites feeds. Ex: mochimedia, FOG, Playtomic, Kongregate, FlashGamesDistribution (FGD), OR SPILGAMES…
– Save highscores, awards, social network integration.
– Ads management function.
– Comment system
– Vote/Rating/Favorite system

Continue reading “Gaming Websites Scripts”

WWW and NON-WWW 301 Redirect

This article will show you how to redirect 301 from WWW to NON-WWW domain / NON-WWW to WWW. Many webmasters are confused when consider to choose preferred domain (www or non-www) for their websites and which version will have better SEO benefits. The answer is : you can pick www or non-www, both versions have same SEO benefits. But please remember that just choose one and redirect 301 other to your preferred version if you dont want to double your SEO efforts.

301 Redirect Rules:

You need to edit your .htaccess file locates at your root directory of your website. Then add redirect rules below:

Redirect from non-www to www

RewriteEngine on
RewriteCond %{HTTP_HOST} ^ 
RewriteRule (.*)$1 [R=301,L]

From www to non-www

RewriteEngine on
RewriteCond %{HTTP_HOST} ^ 
RewriteRule (.*)$1 [R=301,L]

Continue reading “WWW and NON-WWW 301 Redirect”

Best WordPress Plugins

Today, i would like to recommend you some best wordpress plugins and must-have plugins if you are planning to open a wordpress blog/website. As we know, wordpress have a ton of plugins to choose, have useful plugins and outdated plugins too. After installing wordpress, you should consider to choose right plugins for your purpose. Just take a look our recommended wordpress plugins:

1. Contact Form 7

By default, WordPress dont have Contact form, we need to create own contact form. Contact form 7 can help you on that, its simple,  fletxible plugin, easy to use and configure thats what i can say about Contact Form 7.

Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on. And supports multi languages.

If you want to use reCaptcha with Contact Form 7, you need one more plugin named Contact Form 7 reCAPTCHA Extension or Contact Form 7 BWP reCAPTCHA Extension.

Dont forget to get a recaptcha key at

With those plugins, you can also replace default WordPress Captcha with reCaptcha and enhance your spam protect system.

2. All In One SEO Pack (Free)

This is WordPress SEO plugin to automatically optimize your WordPress blog for Search Engines.

Some features:

  • Google Analytics support
  • Support for Custom Post Types
  • Advanced Canonical URLs
  • Fine tune Page Navigational Links
  • Built-in API so other plugins/themes can access and extend functionality
  • ONLY plugin to provide SEO Integration for WP e-Commerce sites
  • Nonce Security
  • Support for CMS-style WordPress installations
  • Automatically optimizes your titles for search engines
  • Generates META tags automatically
  • Avoids the typical duplicate content found on WordPress blogs
  • For beginners, you don’t even have to look at the options, it works out-of-the-box. Just install.
  • For advanced users, you can fine-tune everything
  • You can override any title and set any META description and any META keywords you want.
  • Backward-Compatibility with many other plugins, like Auto Meta, Ultimate Tag Warrior and others.

Continue reading “Best WordPress Plugins”

How To Use H1-H6 HTML Elements Properly

Proper Use Of H1, H2, H3, H4, H5, H6 header elements

The six heading elements, H1 through H6, denote section headings. Although the order and occurrence of headings is not constrained by the HTML DTD, documents should not skip levels (for example, from H1 to H3), as converting such documents to other representations is often problematic. W3C

However you do not need to use all six elements to structure your pages.
For example:

Website Design Basics

Here is some text


Here is some text


Here is some text

Use Only One H1 Element on any page
Continue reading “How To Use H1-H6 HTML Elements Properly”

Setting up Private Nameservers in Cpanel

We’ll show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and
This guide will show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and Once your nameservers are setup clients can then use your own private nameservers for their domains.

1. Regiser your domain

Register the domain name you would like to use.This domain will be used as your nameservers – eg and

2. Additional IPs

Have 2 available IP addresses for your server that aren’t in use.You will need to contact you provider to obtain these IP addreses.

3. Registering the Nameservers

Now login to your domain management page for the domain you registered and register and as nameservers (registries normally have a special facility for doing that). The registry may also have a facility to propogate these nameservers around the foreign registries – if so, you should use this facility.
These registrations may take a few days to propagate (often as many as 3 days).

Continue reading “Setting up Private Nameservers in Cpanel”

Centos 6 & Cpanel: How to install Memcached

What is Memcached?

Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

Official website:

How to install Memcached:

1. Install Required Packages

yum install libevent libevent-devel -y

2. Configure and Compile Latest Version

tar xvf memcached-1.4.13.tar.gz
cd memcached-1.4.13
./configure && make && make install

3. Install Memcached Configuration

Open /etc/memcached.conf with your favorite editor and paste in:

#Memory a usar
-m 16
# default port
-p 11211
# user to run daemon nobody/apache/www-data
-u nobody
# only listen locally

Continue reading “Centos 6 & Cpanel: How to install Memcached”

Administrators Tools

When you are an administrator, you need some tools to do your job 😉 In order to managing your websites, you should consider to use these tools.

1. SSh/Telnet client:

Help you connect to roots server and manage your server with commands.

My favorite ssh client is Putty, its FREE and you can download here:

To access your root server, you must have: ips, connect Port (default:22) , password and username (default:root)

2. FTP Clients:

Sometime you need to connect to root directory of your host to upload/download website source, you can do this via Files Manager feature of your web control panel (Cpanel, kloxo, Directadmin…) but with FTP clients, everything is easier without web browsers.

Example: Filezilla (FREE) or CuteFTP (License) ….

FileZilla Client is a fast and reliable cross-platform FTP, FTPS and SFTP client with lots of useful features and an intuitive graphical user interface.

Official website and its features:

Supported platforms: Linux, windows, Mac OS X

To access FTP server, you must have: ips, Port: 23, password and username

Continue reading “Administrators Tools”

Centos: How to change SSH Port

ssh nano
In order to secure your server, ROOT access. You should consider to change your default SSH port (Port 22) to NON-Standard port. And you make sure that new SSH Port is allowed by your server fireWall.

Simple Steps:

1. Use ssh client such as Putty to log in to your server with old port (default 22).

2. Change SSH config file /etc/ssh/sshd_config

nano /etc/ssh/sshd_config

If nano editor is not installed on server, use this command to install it

yum install nano

Use vi command instead

vi /etc/ssh/sshd_config

Find this line:

#Port 22

Change to your own port and uncomment that line. Example:

Port 1111

Then open new PORT on your server. If you use CSF firewall, just log in to WHM and open CSF control panel then edit TCP_IN port.
Continue reading “Centos: How to change SSH Port”