I have a bulletin board (punBB based) that I was running out of the root directory for a couple of years. I foolishly decided to do a little gardening and in the process moved the punbb code into it's own subdirectory. The code works great; as long as you point the browser at the new subdirectory. The issue is that the users expect to see it at the root...
I tried an index file in the root that had the following:
<?php chdir('punbb');
include('index.php');
But that didn't seem to do the trick. So, I tried using the "damn cool voodoo" of mod_rewrite in .htaccess but I can't seem to figure out the right combination of rules to make it work.
Here is what I would like to make happen:
User enters:
http://guardthe.net
Browser displays:
http://guardthe.net/punbb/
or
http://punbb.guardthe.net/
Is this possible, or should I just move the code base back into the root?