Earthtracker's Blog

Just another weblog

Change Domain root to specific folder

write htaccess file on current root.

RewriteCond %{REQUEST_URI} !domain/
RewriteRule (.*) /folder/$1 [L]

Leave a comment »

শহিদ আজাদ এর মা কে নিয়ে লিখা আনিসুল হক এর মা উপন্যাস

Download Maa-Anisul-hoq

Leave a comment »

Magento 2.1.5 Assets Missing after installation

Remove everything, except .htaccess file from pub/static folder

Open up app/etc/di.xml find the path “Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink” and replace to Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

Leave a comment »

Magento Canonical URL problem from outside of main category solve

In magento , if you add a product in categories multiple categories, and like to display product from outside of the categories, it will no reflect the correct url, it will create a url with the domain name + product url title,It will cause duplicate contents in google, to resolve the problem, here is the solution,My special thanks to



   if($_categories[0]==2) // here 2 is root category id




   $_categories = $_product->getCategoryIds();

   $_category = Mage::getModel('catalog/category')->load($_categories[$cat_count]); 

   $caturl=explode('.html', $_category->getUrlPath());      
   $product_url = Mage::getUrl($caturl[0]).basename($_product->getProductUrl()); 

Leave a comment »

Importing SQL dump in ubuntu

mysql  -u<username> -p  <database-name> < somedatabasetable.sql
Leave a comment »

Run forest run!


This is first time i am writing here.

I planned long time ago to  start, but i couldn’t.

This is little late , I know i have to run  faster

So Run Forest Run…:)

Leave a comment »