After experimenting between my own board, and a board I'm managing for a friend, I've found a .htaccess rewrite for boards that aren't in the root of the site, and are instead at something like: /forum, or phpBB3.
Whatever the case may be, the code below, should work for the Pages MOD to use: http://yourdomain.com/forumdirectory/yourpagename.
The page.php?p=yourpagename still works, with this rewrite applied.
The rewrite just makes it more convenient.

But, in case it doesn't work, be sure, to back up your current .htaccess, and then edit it and add the code.
If it doesn't work, just revert back to the original.
You will have to copy the code below, as the htaccess file extension isn't allowed for upload.

Also, in my case, I applied this to the .htaccess file in the root of my site, and not my Forum directory's .htaccess
Enjoy!
Note: I am in no way providing support for this rewrite, therefore always make a back up of your original files before applying file changes.
- Code: Select all
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
ErrorDocument 400 /error.php?mode=400
ErrorDocument 401 /error.php?mode=401
ErrorDocument 403 /error.php?mode=403
ErrorDocument 404 /error.php?mode=404
ErrorDocument 500 /error.php?mode=500
RewriteEngine on
Rewriterule ^(.+)-f([0-9]*).html-(.+)$ ./viewforum.php?f=$2&$3
Rewriterule ^(.+)-(t|p)([0-9]*).html-(.+)$ ./viewtopic.php?$2=$3&$4
Rewriterule ^(.+)-f([0-9]*)s([0-9]*).html-(.+)$ ./viewforum.php?f=$2&start=$3&$4
Rewriterule ^(.+)-(t|p)([0-9]*)s([0-9]*).html-(.+)$ ./viewtopic.php?$2=$3&start=$4&$5
Rewriterule ^(.+)-f([0-9]*).html$ ./viewforum.php?f=$2&$3
Rewriterule ^(.+)-(t|p)([0-9]*).html$ ./viewtopic.php?$2=$3&$4
Rewriterule ^(.+)-f([0-9]*)s([0-9]*).html$ ./viewforum.php?f=$2&start=$3&$4
Rewriterule ^(.+)-(t|p)([0-9]*)s([0-9]*).html$ ./viewtopic.php?$2=$3&start=$4&$5
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9\-\+]+)$ ./page.php?p=$1 [L]