jamiew0w
Member
So I've wrestled with this for a while and I'm beginning to feel like I'm getting nowhere.
So, to start at the start.
My forums aren't in root, they're in /forums so first up I have to redirect;
Note, in the ACP I have "board url" set to http://domain.com/forums and "homepage url" set to http://domain.com and index route is blank.
This works fine, everything works and all the node links work.
When I turn on Friendly URLs though, things get a little weird.
Categories will load, but boards won't. Individual threads will still open. I've read in this thread that it was due to the Friendly URLs setting it to http://yourdomain.com/forum/forums/main-forum.2/ so I removed /forums from the Index Path in ACP. I thought this had it fixed as the links had changed to http://yourdomain.com/forums/main-forum.2/ but it's still throwing up the "error page not found".
So now I'm really confused, the htaacess in forum root is default apart from uncommenting the " RewriteBase /forums" line.
I assumed it was a misconfiguration in the ACP but I've tried variations and constantly come up with the "error page not found" when trying to view boards from the main node. If I turn off Friendly URLs they all work again instantly.
I'm guessing it's something with my htaaccess in the root but I'm not sure what.
NB: Friendly URLs ARE working, just not for forum links in the node, which is odd..?
So, to start at the start.
My forums aren't in root, they're in /forums so first up I have to redirect;
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteCond %{REQUEST_URI} !^/forums/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /forums/$1
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ forums/index.php [L]
options -Indexes
Note, in the ACP I have "board url" set to http://domain.com/forums and "homepage url" set to http://domain.com and index route is blank.
This works fine, everything works and all the node links work.
When I turn on Friendly URLs though, things get a little weird.
Categories will load, but boards won't. Individual threads will still open. I've read in this thread that it was due to the Friendly URLs setting it to http://yourdomain.com/forum/forums/main-forum.2/ so I removed /forums from the Index Path in ACP. I thought this had it fixed as the links had changed to http://yourdomain.com/forums/main-forum.2/ but it's still throwing up the "error page not found".
So now I'm really confused, the htaacess in forum root is default apart from uncommenting the " RewriteBase /forums" line.
I assumed it was a misconfiguration in the ACP but I've tried variations and constantly come up with the "error page not found" when trying to view boards from the main node. If I turn off Friendly URLs they all work again instantly.
I'm guessing it's something with my htaaccess in the root but I'm not sure what.
NB: Friendly URLs ARE working, just not for forum links in the node, which is odd..?
Last edited: