MyBB Community Forums

Full Version: Multiple Domains (like mirror site)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello i want to ask, i have some problem after register 2 domains on 1 forum

here my domains
https://www.gudanginternet.id/ (main domain)
and
https://www.gudanginternet.com/ (mirror domain)

i tried to install ABP Multidomain and already activated gudanginternet.com
but i have some problem in google seo (maybe) everytime i try to browse forum or thread or user it redirect me back to gudanginternet.id, tried to change my htaccess

from
# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ https://www.gudanginternet.id/$1?$2 [L,QSA,R=301]

to
# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ /$1?$2 [L,QSA,R=301]

still not work, any helps?

any clue anyone?
You must have separate rules based on %{HTTP_HOST}:
RewriteCond %{HTTP_HOST} gudanginternet.com$ [NC]
RewriteRule ^([^&]*)&(.*)$ https://www.gudanginternet.com/$1?$2 [L,QSA,R=301]
...
RewriteCond %{HTTP_HOST} gudanginternet.id$ [NC]
RewriteRule ^([^&]*)&(.*)$ https://www.gudanginternet.id/$1?$2 [L,QSA,R=301]
(2016-12-08, 07:59 AM)Crazycat Wrote: [ -> ]You must have separate rules based on %{HTTP_HOST}:
RewriteCond %{HTTP_HOST} gudanginternet.com$ [NC]
RewriteRule ^([^&]*)&(.*)$ https://www.gudanginternet.com/$1?$2 [L,QSA,R=301]
...
RewriteCond %{HTTP_HOST} gudanginternet.id$ [NC]
RewriteRule ^([^&]*)&(.*)$ https://www.gudanginternet.id/$1?$2 [L,QSA,R=301]

still not work, i think its because google seo plugin