Home / 2016 / March

Monthly Archives: March 2016

How to Secure Your WordPress Admin to Restrict Access to Specific IP Address with HTACCESS?

[tblock anim=”swing” tcuscolor=”#7700ff” title=”How to Secure Your WordPress Admin to Restrict Access to Specific IP Address with HTACCESS?” tag=”h2″/] Copy and paste the code in .htaccess file. ErrorDocument 401 /path-to-your-site/index.php?error=404 ErrorDocument 403 /path-to-your-site/index.php?error=404 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ RewriteCond %{REMOTE_ADDR} !^IP Address One$ RewriteCond …

Read More »

How to Secure Your Magento Admin to Restrict Access to Specific IP Address with HTACCESS?

[tblock anim=”pulse” tcuscolor=”#005eff” title=”How to Secure Your Magento Admin to Restrict Access to Specific IP Address with HTACCESS?” tag=”h1″/] Copy the code and past in .htaccess file and change the ip with you. RewriteCond %{REQUEST_URI} ^/(index.php/)?admin/ [NC] RewriteCond %{REMOTE_ADDR} !^196.196.196.196 RewriteRule ^(.*)$ http://%{HTTP_HOST}/ [R=302,L] Example: RewriteCond %{REQUEST_URI} ^/(index.php/)?youradminname/ [NC] RewriteCond …

Read More »

How to Creating a Custom Post Type for product, slider, portfolio or News Sections in wordpress or Woocommerce

Copy and paste the code in functions.php function my_custom_post_product() { $args = array(); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' ); <?php function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( …

Read More »