Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Multi-language based on domain

Started by Alex 9 years ago · 3 replies · 995 views
9 years ago

Hi everyone.

What I'm trying to achive is:
http://site.com => Points to Engish version
http://site.pt => Points to Portuguese version
etc.

Of course I'm aware of this, but what that section describes is redirecting from site.pt to site.com/pt, but I need to stay on site.pt and see Portuguese content.

Is it possible at all? I was thinking of another option - setting it up as multisite, but I strongly wouldn't like to do it as Grav has such convenient content translation system, and I' really want to use it.

Thanks in advance for any input!

1 reply
9 years ago

No, Im pretty sure this isn't possible, as that would be completely different domains :)

9 years ago

Hi
I'm wondering if you could get away with doing something where you create content elsewhere maybe your local machine and then automatically push it out to both sites together maybe using git. In this way you can use the admin panel and built in translation tools to create your content but still be able to keep two separate sites in sync.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 8 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago