I have the following configuration in my server:
in /var/www/ I have three folders:
- WPnetwork
- phpBB
- WPsingle
I have 2 domains, one pointing to WPnetwork and other pointing to WPsingle. All of them work. Let’s call them network.com and single.com
In my wpnetwork, I have 3 sites with subdomains which work:
- A.network.com
- B.network.com
- C.network.com
I want my phpBB site into the network.com domain, I don’t really mind if it’s forum.network.com or network.com/forum
I’m fighting with my wpnetwork’s .htaccess to make phpbb accesible to the public, but I can’t. Could you help me with this configuration?
My current htaccess is:
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
# RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
Thank you everybody.