XF 1.5 Directory change issues


Well-known member

I moved the forum files from /forums to root and updated the board url to https://domain.com before doing the file changes and that shows fine however, when clicking a category it is showing up as not found as it is adding /forums to the URL.

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^forums/(.*)?$ /$1 [R=301,L]
The above is what I added to the top of the .htaccess but not sure if this is correct? Also trying to use CTA Featured Threads with this so need it fixed so I can add index routing to threads/featured again if possible.

Thanks for any help!


Well-known member
Your rewrite conditional doesn't take into account the fact that the route for categories & forum nodes is forums/name.id/. You would need to modify that to exclude this situation.