DivaVocals:
EXACTLY!!!!
And THIS is the reason why everyone is asking the OP WHY DO YOU WANT TO DO THIS?? Not seeing the logic behind developing on some sub-folder then forcing the "live" URL to be a mask for this sub-folder..
Why not develop in a DEVELOPMENT environment/site, and PUSH the dev code to the live site as is recommended by nearly every Zen Cart vet, and is the standard dev process at nearly EVERY MAJOR CORPORATION worldwide who support software/systems.. This whole process as described by the OP doesn't appear to have any benefit or upside to it.. IJS
EXACTLY.
I see no point or compelling reason to develop a website in a "subdirectory" when the desired final URI path is different ("/" instead of "/zencart" in this case). Using different URI paths during development just complicates things.
Instead match the path and just use a different host / domain name. For example "mysite.local" when developing on a local computer / network or "devtest.mysite.com" when developing on the hosting provider (for the live website).
Moving files is FAST via SSH, cPanel, WSH, etc. Downtime while switching from the old to new files will take less than one minute (most cases). And if one has access to the web server's configuration files (and knows what they are doing), the downtime can be reduced to under a second (most cases).
But now that you are where you are... If the site is not yet indexed or ranked in SEs, I'd recommend using the instructions in the FAQ to move the installatiion.
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker