Switching forum from subdomain to sub directory

If you really like shooting yourself in the foot, these guides should help you to aim:

In the remap step, you have to find a replacement that not only updates the hostname, but also inserts the path. This will be tricky, and probably require a few restores and retries until you get it right.