Welcome Guest, Not a member yet? Register   Sign In
multiple sites, 1 codebase, using symlinks (with smarty)

I've been going through the forum checking best strategies for multi app executions and I must say, this is a sweet setup.
I've set everything up as outlined (dir structure, symlinks etc.) but I do have a few potential differences:

My local installation is housed at '' with a path of '/htdocs/webapp'
Here is how I've setup my application switch. Notice I am using the URI to then go to the approriate app directory.

$myApp = '';
$uriArr = explode("/", $_SERVER['REQUEST_URI']);

    case 'cms':
        $myApp = 'www_cms';

    case 'id':
        $myApp = 'www_id';

    case 'test':
        $myApp = 'application';

        $myApp = 'application';
$application_folder = $myApp;

Issue is, whenever I then go to -OR- even I get a 404. works fine.

I have not changed anything with the application constants in INDEX.PHP and my .htaccess (/htdocs/webapp) is as follows:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /webapp
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php

.htaccess in my app folders (www_cms, www_id)

Options +FollowSymLinks

I'm wondering if there is a step I'm missing. Possibly with the .htaccess in /webapp -OR- the index.php file itself. What are your thoughts?

Messages In This Thread
multiple sites, 1 codebase, using symlinks (with smarty) - by El Forum - 10-24-2007, 06:40 AM

Theme © iAndrew 2016 - Forum software by © MyBB