Moving your opencart store to another directory - 100% working
Hi Everyone!Well I recently ran into a bit of trouble with my site – I have a main store, and then wanted to create another store in another directory, so to go to the main store you would go to www.mystore.co.za/store and then to go to the store for a particular country, you would go to www.mystore.co.za/countryname/store
Yes yes, I know about opencart multisite, but I wanted a completely separate database for seamless synchronization with my accounting package.
Now almost all of the guides on the net tell you about editing config.php and /admin/config.php, and this is quite right, particularly for moving your opencart store to another directory or to another domain/website. But what isnt mentioned online, is this:
YOU NEED TO CHANGE THE DIRECTORY IN YOUR .htaccess file!!!!
To do this, simply go to your new store directory, and grab the .htaccess file, and make sure the following line is there:
Please note that there is no trailing / and there is one right before yourNewDirectory
Also note that this guide will help with sorting out the problem where all links on your new store website resolve to the new opencart store, and not point to the old one.
If you require any assistance, don’t hesitate to comment or ask a question and I’ll get back to you.