Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: phranque
What I mean is that I build a site using folders in the APache document root. This means that the base URL for the new site is /folder/ instead of directly root. SO when I have to bring the site online, I need to change all those references. How do the veterans on here develop so that as little code needs to be changed when going online? Any success with virtual hosts?
I got used to working with templates having strict code, so then if I need to change something, its two files (or a bunch) and a text replace does the work with an text editor.
I'm managing only two pages now (template) and use my own CMS to work the rest out, so no changed needed. If so, I do it via preferences (CMS).
joined:July 29, 2007
I'd also recommend taking your workspace online but keep it in sandbox state where nobody but you can find/access it.
I include a $domain global variable in the configuration file for each site.
Whenever a site is moved, all that has to be changed is the value for $domain and I'm good to go.