Rather than use re-directs (htaccess), it's better to move (copy) the file system to the root directory.
I always COPY the site (files), leaving the originals in the sub-directory until I'm confident the root version works. The process involves:-
1. COPY the directories and files over to the root - best done using your host c-panel. Can be done using FTP (where you copy the site to your local drive, then re-ftp it to the root) but there's the risk of corrupting files during FTP.
2. When you have a clean copy in the root directory, you just need to edit the two configure.php files (copies now resident in the root file structure) to establsh the PATHS... eg:
PHP Code:
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/zen/');
define('DIR_WS_HTTPS_CATALOG', '/zen/');
... to:
PHP Code:
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
(There are a couple of places where the path will also refer to zen and these need to be changed as well).
3. You may need to re-set CHMOD permissions on various directories - particularly those requiring 777 permissions, such as the images folders - see the zencart documentation for a list of files requiring CHMOD changes.
4. If you have any hard-coded internal links - especially in defined pages, then you need to point these to the appropriate files/resources now in the root folder.
5. You probably need to re-set the cache key. Get fix_cache_key.php from the free software add-ons and load the file to your root installation, then run this file via your browser (just type in your url and the filename - www.yourwebsite.com/fix_cache_key.php). This will re-set the cache key in the database. Delete the file when complete.
6. Test the site.
7. rename index.php in your zen folder to index.txt, and put a BLANK index.html file in that folder (for security).
8. When you are happy (after a couple of weeks) that your root installation is OK, you can safely delete the installation in the zen folder.