And here is the answer in the event this may help someone in the future. Yes phpbb will allow it with some htaccess code in the subfolder.
If you are going to run a different script/website in a sub folder of phpbb install, then you need to tell the server that you want that sub folder to use its own index file. In other words with this code in the sub folder htaccess file, if you enter for example phpbb/subfolder/filename.ext and that file does not exist or they dont have access then this code will take them to the subfolder/index file (whichever you assigned in the htaccess DirectoryIndex command. Index.php, index.html whichever..
Now that all depends on what other instructions you have in the .htaccess file also.
If you dont have this code then what happens is the server (and phpbb error handler) will send them to the phpbb custom not found page of your phpbb install and you may not want that. This code can be modified to go to your apache custom 301 file or even an apache custom 403 file in the subfolder. But the code as it is now just takes them to the subfolder index file.
This will help you isolate your other sub folder website from the phpbb install. This does not cover a qualified sub domain. The difference being that you can run a website in a sub folder or you can assign that subfolder a domain name for example domain.maindomain.ext which has its own set of domain server files, just using a folder withhout assigning it a domain does not have those. In both examples the files are located in the same place but with one its just a folder and with the domain its a real domain.
Hope that makes sense. Hope this helps someone. Remember this goes in the subfolder/.htaccess file... NOT the phpbb .htaccess file..
If you are going to run a different script/website in a sub folder of phpbb install, then you need to tell the server that you want that sub folder to use its own index file. In other words with this code in the sub folder htaccess file, if you enter for example phpbb/subfolder/filename.ext and that file does not exist or they dont have access then this code will take them to the subfolder/index file (whichever you assigned in the htaccess DirectoryIndex command. Index.php, index.html whichever..
Now that all depends on what other instructions you have in the .htaccess file also.
If you dont have this code then what happens is the server (and phpbb error handler) will send them to the phpbb custom not found page of your phpbb install and you may not want that. This code can be modified to go to your apache custom 301 file or even an apache custom 403 file in the subfolder. But the code as it is now just takes them to the subfolder index file.
This will help you isolate your other sub folder website from the phpbb install. This does not cover a qualified sub domain. The difference being that you can run a website in a sub folder or you can assign that subfolder a domain name for example domain.maindomain.ext which has its own set of domain server files, just using a folder withhout assigning it a domain does not have those. In both examples the files are located in the same place but with one its just a folder and with the domain its a real domain.
Hope that makes sense. Hope this helps someone. Remember this goes in the subfolder/.htaccess file... NOT the phpbb .htaccess file..
Code:
#force / or /sub to use its own indexRewriteCond %{HTTPS} !on [OR]RewriteCond %{HTTP_HOST} ^www\. [NC]RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
Statistics: Posted by durangod — Sun Jul 28, 2024 3:41 am