Possible bug when using .htaccess

I followed the instructions on Topic 5190 and somewhere else that I can’t remember that told me about setting up the symbolic links. I got it completely working except for one hack I had to do. I had to copy the index.php file and change it so that the SQ_SYSTEM_ROOT pointed to the right place. Looking at the file, I’m wondering if that is actually a bug. The way the directory is calculated for the init.inc works because it used FILE. Shouldn’t the define for SQ_SYSTEM_ROOT use the same?


The following is what worked for me when I did create a symbolic link for the index.php and hacked it.

    //define('SQ_SYSTEM_ROOT', dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME']))));
    define('SQ_SYSTEM_ROOT', dirname(dirname(dirname(__FILE__))));
    
    require_once dirname(dirname(__FILE__)).'/include/init.inc';


I dunno if this would mess up people that use a virtual host setup. Since it works when the [i]init.inc[/i] is called, I can't imagine that it would.

Let me know if I should file this as a bug. If it doesn't mess up the virtual host setup, it's one less step to setting up with .htaccess. A copy of index.php also wouldn't be upgraded on the offchance it does get changed.