Make IP.Content your home page
(Note that there are two sets of instructions in this article. The top half is for if you wish to use IP.Content to serve pages from outside your forum directory anywhere, the bottom half is if you want to set the default forum application to CCS, for instance, if your forum is located at http://www.site.com and when you go to that address, you want IP.Content to load rather than the forum).
IP.Content can be used to serve pages from outside of your forum directory, including (but not limited to) serving pages from your document root. That means you can have your forums at domain.com/forums and still have your IP.Content homepage(s) served at domain.com/.
To do this, first you will need to upload the "index.php" that you will find in your IP.Content download under the Tools/ folder to the folder on your server where you want IP.Content to serve pages from. For instance, this might be in /home/youraccount/public_html/ on many webservers. Next, you will need to open this index.php file, and edit the following path at the top of the file
$path_to_ipb = './forums/';If your forums happen to be in a /forums/ folder relative to this index.php file, you do not need to make any changes. Otherwise, update the path appropriately.
(More information on this file can be found in the Tools/README.txt file included in the download).
Next, you will need to login to your ACP and visit My Apps -> IP.Content -> Settings -> Advanced. You will need to configure the first setting (URL to index.php) appropriately based on where you have uploaded the index.php file. You can also rename index.php if necessary (e.g. you could rename index.php to "home.php", leaving your existing index page in place on your server). If you do, be sure to update the second setting on this Advanced Settings page. Lastly, you can optionally enable mod_rewrite for IP.Content, which will allow you to change the URL from
to the more appropriate and expected url of
You must be sure that your server supports mod_rewrite to use this setting. Save your configuration selection by clicking Update Settings at the bottom of the screen. If you enabled mod_rewrite for IP.Content, be sure to click the "Download .htaccess file" button at the top of the screen, and upload this file to the same folder that you uploaded the custom index.php file to.
Afterwards, you should be able to access pages through the gateway index.php file. If you go to the Pages area, and click the little green arrow next to a page, it will send you to page URL so that you can verify everything is working correctly.
If you are using IP.Content through your IP.Board installation or have a hosted community with us, you can still have IP.Content be the homepage for your forum installation.
To do this in IPB 3.3.0 or higher, create a file in notepad/wordpad or your favorite text editor and have it contain
<?php define( 'IPS_DEFAULT_PUBLIC_APP', 'ccs' ); ?>Save the file named as constants.php and upload it to your forum root directory (The one with conf_global.php and initdata.php)
To do this in IPB 3.2.3 or lower, you will need to open initdata.php and find the following line:
define( 'IPS_DEFAULT_PUBLIC_APP', 'forums' );Change this to
define( 'IPS_DEFAULT_PUBLIC_APP', 'ccs' );And then reupload the file.
Now when you visit your forums, IP.Content should be the homepage, instead of the forum index. Note that if you use this method, you do not need to use the index.php file found under the Tools folder, and should be sure that the "URL to index.php file" setting in Advanced Settings is blank.[/hr]