Posts

Opencart Admin Login problem if username and password is still correct

I found I am not able login Opencart Admin since Username and Password is correct. This is problem due to root htaccess is redirecting to https:// and my sub folder have no any htaccess so if in our code have http:// URL setting then it will redirect https:// and cann't login to Admin if user and password is correct. it would only redirect to login page again and again. SOLUTION:-  1. put htaccess in subfolder OR WE CAN TRY 2. make url as http:// to https:// so that it will work for both. 

Change Localhost Apache XAMPP Port 80 to 1234

Note:-   From This Process You can install multiple Xampp in Single Computer or Drive. 1. Open XAMPP Control Panel. 2. To    O pen the Apache "httpd.conf" file   click the “Config” button next to Apache “Start” and “Admin” buttons in Xampp Control Panel that would be like this :- Apache(httpd.conf) In the popup menu that opens, click and open httpd.conf 3.  Within the httpd.conf file search for “listen”. You’ll find two rows with something like; #Listen 12.34.56.78:80 Listen 80 Change the port no to a port no. of your choice (e.g. port 1234) like below #Listen 12.34.56.78:1234 Listen 1234 4. Next, in the same httpd.conf file look for “ServerName localhost:” Set it to the new port no. ServerName localhost:1234 5.  Save and close the httpd.conf file. 6.  Now click the Apache config button again and open the “httpd-ssl.conf” file. 7. In the httpd-ssl.conf file, look for “Listen” again. You may find: Listen 443 Change it to listen on a new port no o

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