exmaple.com has not changed, it is pointing to IP of the main host (not for phpbb), then I created subdomain forum.example.com and another server to host phpbb, and had forum.example.com point to that host.If exmaple.com has not changed that doesn't mean anything since the requests for https://forum.example.com/ are going to new host.Another thing is that it is the other way around, my old forum is https://forum.example.com/ and the new one is https://example.com/forum, since the old host is already deleted, I won’t be able to edit its .htaccess file.
In the domain root try adding this to .htaccess file. If no .htacccess file exists create one.Note if there is existing .htaccess line withCode:
RewriteEngine OnRewriteCond %{HTTP_HOST} ^forum\.example\.com$ [NC]RewriteRule ^ https://example.com/forum [L,R]
RewriteEngine On
don't add it again.
but now I have deleted the host instance and the subdomain forum.example.com, I can recreate the subdomain, but don't want to recreate that host (that is why I migrated it to a subfolder example.com/forum).
I guess in this case I won't be able to use the .htacccess file approach? or I am wrong?
Statistics: Posted by diabloooo — Sat Aug 03, 2024 12:35 pm