• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Is it possible to have a .htaccesss rule to root the forum from a subdirectory?

#1
So basically, my forums are located in public_html/forums. On my website, this appears as mywebsite.com/forums. The problem is this displays as mywebsite.com/forums/forums/thread-one.1/

Is it possible to define a .htaccess rule to redirect traffic to the root of my website to the /forums/ directory, while not showing /forums/ twice?
 

Mike

XenForo developer
Staff member
#2
You would probably do best moving your whole XF installation to the root then. (If you're wanting the root to be the forums folder, it doesn't sound like there's anything there.)
 
#3
I have a couple of other things in the root of my website. I have a phpBB forum that's still being used a little (for a different purpose than XenForo) and a MediaWiki installation at the root. The MediaWiki also has custom .htaccess rules that have to go at the root of the website. That's why I wanted to know if I could use some sort of redirect logic for the /forums/forums issue.
 

Mike

XenForo developer
Staff member
#4
If XF is in a forums/ directory and can't be moved, the only option you would have is to use route filters to change the (second) forums/ prefix.
 
#5
Thanks for your input Mike. I ended up moving the MediaWiki installation to another subdomain and fully deprecating the phpBB3 installation.