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 /opencartstorein HTACCESS




  • Remember we have http://localhost/ is here working as a domain and our store is installed here http://localhost/opencartstore/  in a folder name opencartstore


3. Now in 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.

THAT'S IT. 

Popular posts from this blog

How to open cPanel using WHM access.

Cant use dump() function in twig files or how to enable debug in opencart twig or print_r alternate use dump() in opencart 3.0