Develop in a V2 subfolder, then launch / mask with .htaccess

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Develop in a V2 subfolder, then launch / mask with .htac

Post by Dr.CSS »

I copy all the folders/files to the root then make a new DB and import the original into it and change all the DB and server paths in the [[root]] config.php...

This will give you 2 working CMSMS installs, V2 can be used for testing module upgrades, template changes, etc. so the live one doesn't get messed up if you make any mistakes etc...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Develop in a V2 subfolder, then launch / mask with .htac

Post by Dr.CSS »

I only use htaccess for pretty URLs, other wise the subfolder site is reached by thesite.com/subfolder...

Look in my signature for an example...
User avatar
manuel
Power Poster
Power Poster
Posts: 353
Joined: Fri Nov 30, 2007 9:15 am

Re: Develop in a V2 subfolder, then launch / mask with .htac

Post by manuel »

Hi Samalah,

A nice trick to have up my .htaccess sleeve just in case... :)
Thx for sharing!

Greetings,
Manuel
Wishbone
Power Poster
Power Poster
Posts: 1369
Joined: Tue Dec 23, 2008 8:39 pm

Re: Develop in a V2 subfolder, then launch / mask with .htac

Post by Wishbone »

What I do on CPanel hosts is to make a sym-link from public_html to ~/sites/V1 (V2, etc)

When I'm ready to go live, I direct my public_html link to point to the right version.
Post Reply

Return to “Tips and Tricks”