ewmjr wrote:The reason I asked the question is that all the koken files are also in a subdirectory. In fact the koken htaccess file is the only file at the root level. Is there any way X3 can work the same way?
May I see the content of the .htaccess file? It's certainly possible with some rewrite rules. However, this could also be set in your server config (unrelated to the .htaccess file), so it needs to be checked. Also, when you access your current koken, does the URL actually display yourwebsite.com? Or does it redirect to some sub-directory yourwebsite.com/koken? (both can be achieved).
Yes it can be done, but it's not best practice. Rewrite or redirect will create a tiny delay on all requests. Besides, if you plan your folder structure properly, there is no reason you should not put your actual website content in the root. After all, if you "rewrite" your website root to the X3 dir, it's not possible to access any other files or folders in your root, which defeats the purpose of them being stored there in the first place. If you have private/unused files and folders that you want to keep (eg backup), they could for example be located in the PARENT directory of your website root. This is probably more secure also.