It's simple to do, but you will need to edit a couple of files. I'll presume for this example that your site's url is
www.example.com and you want Vivvo to be installed in sub-folder named vivvo/
- Install Vivvo in subfolder vivvo/
- Go to that subfolder and open conf.php file in editor and find a line that reads
PHP Code:
define('VIVVO_URL', 'http://www.example.com/vivvo/');
and change it to point to the webroot of your site:
PHP Code:
define('VIVVO_URL', 'http://www.example.com/');
- Move .htaccess file from vivvo/ subfolder to webroot, open it in editor and add the following lines below "RewriteEngine On" line, and above the rest of RewriteRules:
Code:
RewriteCond %{REQUEST_URI} !^/vivvo/
RewriteRule ^(.*)$ vivvo/$1 [L]
- Create a new file index.php in the webroot of your site, and put this code in it:
PHP Code:
<?php
require 'vivvo/index.php';
?>
make sure there is no spaces, new lines, etc. before <? or after ?> tags, as it will create php errors.
- That should be it, when you point your browser to www.example.com, it will serve Vivvo pages from www.example.com/vivvo/
The problem with this setup is that your site will be accessible from both
www.example.com, and
www.example.com/vivvo, and that is not very good from SEO point of view. You can solve this with robots.txt file that will block search engines from indexing vivvo/ path, as it should be invisible for your users anyway. Create file named robots.txt in your webroot and add this text:
Code:
User-agent: *
Disallow: /vivvo/
Of course, substitute 'vivvo' with the actual name of subfolder where Vivvo is installed.