genx7up / yourls-allow-aliases

Alias for hosting domain
0 stars 0 forks source link

How to use? #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The plugin description gives the impression this plugin will allow a yourls 
installation to work (or at least the shortened URL's) on two domain names.

I fear I am overlooking something, but I assume just activating the plugin in 
Yourls won't do the trick.

Any pointers maybe?
Or have I misunderstood the purpose of this plugin?

Thx :)

Original issue reported on code.google.com by m...@beun.net on 20 Mar 2013 at 8:49

GoogleCodeExporter commented 9 years ago
hi

I have the same problem with this plugin. Could you explain how to configure 
this plugin to work propertly with 2 domains?

Thank you.

Original comment by skra...@gmail.com on 26 Mar 2013 at 11:03

GoogleCodeExporter commented 9 years ago
Just add your second domain in the | …/user/conig.php >> line 31:

Example:
define( 'YOURLS_SITE', 'http://yourdomain.com', 'http://yourseconddomain.com' );

Original comment by g...@6au.de on 30 Oct 2013 at 1:53

GoogleCodeExporter commented 9 years ago
I tried #2's solution, and it failed because of a syntax error. I still don't 
understand how to use this.

Also, I noticed that http://domain.one/abc123 redirects to http://domain.two/ 
when the config is set to http://domain.two/, which is not what it is supposed 
to do...

Original comment by andy.su...@gmail.com on 1 Dec 2013 at 12:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The syntax error appears to be due to a missing comma in #2's example - try:
define( 'YOURLS_SITE', 'http://yourdomain.com' , 'http://yourseconddomain.com' 
);

Original comment by ppi...@gmail.com on 20 Feb 2014 at 8:45