Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2111

[3.3.x] Support Forum • Re: Forum not showing in search engine results after domain change

$
0
0
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.
If exmaple.com has not changed that doesn't mean anything since the requests for https://forum.example.com/ are going to new host.

In the domain root try adding this to .htaccess file. If no .htacccess file exists create one.

Code:

RewriteEngine OnRewriteCond %{HTTP_HOST} ^forum\.example\.com$   [NC]RewriteRule ^ https://example.com/forum  [L,R]
Note if there is existing .htaccess line with RewriteEngine On don't add it again.
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.

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



Viewing all articles
Browse latest Browse all 2111

Trending Articles