genx7up / yourls-allow-aliases

Alias for hosting domain
0 stars 0 forks source link

Use more than two domains ? #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

This plugin works perfectly for 2 domains, but what if we'd like to use more 
than two ?

I'm currently merging five different instances (from different members of the 
family) of yourls into one, but I'm having trouble to get all the domains to 
work...

Thanks !

Original issue reported on code.google.com by benja...@blancpm.com on 22 Oct 2014 at 3:50

GoogleCodeExporter commented 9 years ago
In the meantime, manager by using htaccess with mod rewrite on each of the 
domains, but that's not as clean as I'd like...

If someone is looking for the same thing :
RewriteEngine on
Rewritecond %{HTTP_HOST} ^old-domain.com$
Rewriterule ^(.*) http://new-domain.com/$1 [QSA,L,R=302]

If anyone has a clean solution using this plugin, it would be awesome.

Original comment by benja...@blancpm.com on 22 Oct 2014 at 5:15