Not Solved Multiple Domains (like mirror site)
#1
Not Solved
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?
Reply
#2
Not Solved
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]
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#3
Not Solved
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)