kirsty
Member
I've got a XenForo forum at
And my own addon with routes, eg
But I'd like users to see these add on pages at eg
I can create an htaccess
but although that fires up XenForo it gives a
I can envisage a system where I actually create the somewhere/something.html file as a php file and include the xf php file and pass the route I actually want through in it - although I had a go at just copying in the XenForo index.php and just got 500 errors so I'm not sure what the specifics of that file would be.
Is there an approach to this I'm missing?
(By the way - I don't want to put XenForo in the web root directory so that
sitename.com/forums/
And my own addon with routes, eg
myroute/stuff
that work at sitename.com/forums/myroute/stuff
But I'd like users to see these add on pages at eg
sitename.com/somewhere/something.html
I can create an htaccess
RewriteRule ^somewhere/something.html$ /forums/myroute/stuff [PT]
but although that fires up XenForo it gives a
The requested page could not be found. (Code: invalid_route, controller: -, action: -)
error where it doesn't seem to know what route to look for - I guess there just isn't one at all which makes sense - so route filters aren't helping.I can envisage a system where I actually create the somewhere/something.html file as a php file and include the xf php file and pass the route I actually want through in it - although I had a go at just copying in the XenForo index.php and just got 500 errors so I'm not sure what the specifics of that file would be.
Is there an approach to this I'm missing?
(By the way - I don't want to put XenForo in the web root directory so that
sitename.com/myroute/stuff
would work directly as there's an awful lot of other stuff on the server beside the forums.)