Forums

[resolved] WordPress as CMS with phpBB as forum - folders and root question (3 posts)

  1. Wendel Brume
    Member
    Posted 8 months ago #

    I just installed new WordPress and phpBB installations on a new domain where I have control of the location of the installations. I've always let the host install WordPress before, so this is new to me.

    The file structure looks like this:

    architecturecartoon.com
      htdocs
       cartoon
       forums

    WordPress is installed in the 'cartoon' folder and phpBB is installed in the 'forums' folder. MySQL knows where they are, and I see those folders in path names in the database. I have an .htaccess file that redirects architecturecartoon.com to cartoon.architecturecartoon.com.

    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} forums.architecturecartoon.com [NC]
    RewriteCond %{REQUEST_URI} !^/forums
    RewriteRule ^(.*)$ forums/$1 [L]
    
    RewriteCond %{HTTP_HOST} cartoon.architecturecartoon.com [NC]
    RewriteCond %{REQUEST_URI} !^/cartoon
    RewriteRule ^(.*)$ cartoon/$1 [L]

    This works fine the first time someone visits, thereafter if you click on a permalink, the file path becomes: architecturecartoon.com/cartoon/the_rest_of_the_url.

    I 'think' I want to change back to not having the redirect and the subdomains, and just have all the URLs with the folder name. I could move the current WordPress files up a level in the file structure, but the current installation of the MySQL database expects the current folder structure. I can nuke that and start over if needed, but it's nice to have all the WordPress files in a separate folder, rather than in the root.

    My preference is to move the WordPress index.html file out to the root, but I suspect there's something I need to change so WordPress knows where all its files are. How should I modify this installation?

    Thanks

    PS: There is no dialogue on the test cartoons that are showing now, they are just tests.

  2. Wendel Brume
    Member
    Posted 8 months ago #

    It looks like I want to do a version of this:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    But it seems odd that that process doesn't acknowledge the file path change as it might affect the MySQL database. So now I'm wondering if that's an issue?

  3. Wendel Brume
    Member
    Posted 8 months ago #

    Yep, that worked.

Reply

You must log in to post.

About this Topic