<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
Hi Colin,
<br />
<br />Why move the document root at all?
<br />
<br />We set up Joomla or Wordpress for existing customers in a directory named "cms" inside their existing website. Then when they're ready to go live with the Joomla, we put a index.php file in the website root directory (/web) that redirects from the root directory into that /web/cms directory. Like this:
<br />
<br /><?php
<br />header("HTTP/1.0 301 Moved Permanently");
<br />header("Location: http://www.whatever.com/cms/");
<br />?>
<br />
<br />That way, we don't have to change directories or screw up any of the configuration for the new website - just redirect requests to it. Just make sure you remove/move any existing index.htm or index.html files - so site requests get the index.php and are redirected.
<br />
<br />We've done this for literally dozens of websites, and never had a problem. It also can keep the website root directory (/web) cleaner if your customer has a lot of stuff going on (Joomla, scheduler, another dev website, etc...). That way, you simply have some directories in the root of their website - and its easy to separate different programs.
<br />
<br />
<br />
<br />Chuck
<br />
<br />
<br /><font size="2">
<br />
<br /><b>---------- Original Message
-----------</b>
<br />
From: Colin Jack <colin@mainline.uk>
<br />
To: BlueOnyx General Mailing List <blueonyx@mail.blueonyx.it>
<br />
Sent: Fri, 20 Mar 2015 12:18:47 +0000
<br />
Subject: [BlueOnyx:17334] Wishlist :)
<br />
<br />> Just wondered if it would be possible to add the ability to change the
root document folder in maybe General Settings or Services/Web
<br />>
<br />>
This would be very useful when for example using Michael's Wordpress or Joomla
plugin - initially set the folder to say /wordpress or /joomla with a holding
page in /web and then when they want it to go live change the document root. If
we move everything back into the root, we run into permissions problems at the
moment.
<br />>
<br />>
We currently have to do this manually.
<br />>
<br />>
Colin
<br />>
<br />>
_______________________________________________
<br />>
Blueonyx mailing list
<br />>
Blueonyx@mail.blueonyx.it
<br />>
<a target="_blank" href="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a>
<br /><b>------- End of Original Message
-------</b>
<br />
</font>
</BODY>
</HTML>