Posts

Make URLs seo friendly in Opencart in Live or Localhost in just few steps

LIVE  1. Rename your OpenCart .htaccess.txt file to  .htaccess 2. Do this given below changes in HTACCESS For stores installed in a subdirectory (i.e.  www.yoursitename.com/store/ ) Change  RewriteBase /   to   RewriteBase /store/ in HTACCESS For stores installed in a rootdirectory (i.e.  www.yoursitename.com/ )   For stores installed in a rootdirectory (i.e.  www.yoursitename.com/ ) Don't change anything in HTACCESS 3.  OpenCart admin panel and go to:  System->Settings->Edit->Click the “Server” Tab . The top option should be the one named “Use SEO URL’s”, simply click that to Yes and click Save. LOCALHOST 1. Rename your OpenCart folder .htaccess.txt file to  .htaccess 2. Do this given below changes in HTACCESS For stores installed in a subdirectory (i.e.  http://localhost/opencartstore ) Change  RewriteBase /  to   RewriteBase / opencartstore /  in HTACCESS Remember we have http://localhost/  is here wo

Redirect non-www to www URL's using htaccess and Vice Versa

# Redirect non-www to www: RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] www to non-www # Redirect www to non-www RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] Or try this link http://www.thesitewizard.com/apache/redirect-domain-www-subdomain.shtml

IP canonicalization

Image
IP canonicalization is a technique sometimes used for SEO (search engine optimization). When a site's IP address is canonicalized, the IP address redirects to the domain name.

Show google Map using Address with PHP

  <?php   $location = 'chandigarh';   $address = urlencode($location);   $request_url = "http://maps.googleapis.com/maps/api/geocode/xml?address=".$address."&sensor=true";   $xml = simplexml_load_file($request_url) or die("url not loading");   $status = $xml->status;   if ($status=="OK") {       $ravilat = $xml->result->geometry->location->lat;       $ravilon = $xml->result->geometry->location->lng;         } ?> <script src="http://maps.googleapis.com/maps/api/js"></script> <script> function initialize() { var grayStyles = [         {           featureType: "all",           stylers: [            { hue: '#aaaaaa' },       { lightness: -15 },       { saturation: 99 }           ]         },       ];   var mapProp = {     center:new google.maps.LatLng(<?php echo $ravilat; ?>,<?php echo $ravilon; ?>),     zoom:10,

Show Google Map using Address with JQuery

Address: Locate

ADD COLUMN IN TABLE IN MYSQL IN OPENCART

Image

Get langitude and latitude using address in php

 <?php   $location = 'chandigarh';   $address = urlencode($location);   $request_url = "http://maps.googleapis.com/maps/api/geocode/xml?address=".$address."&sensor=true";   $xml = simplexml_load_file($request_url) or die("url not loading");   $status = $xml->status;   if ($status=="OK") {       $ravilat = $xml->result->geometry->location->lat;       $ravilon = $xml->result->geometry->location->lng;         } ?> <script src="http://maps.googleapis.com/maps/api/js"></script> <script> function initialize() { var grayStyles = [         {           featureType: "all",           stylers: [            { hue: '#aaaaaa' },       { lightness: -15 },       { saturation: 99 }           ]         },       ];   var mapProp = {     center:new google.maps.LatLng(<?php echo $ravilat; ?>,<?php echo $ravilon; ?>),     zoom:10,