Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax for adding aliases #6

Open
ajshea opened this issue Sep 11, 2018 · 2 comments
Open

Syntax for adding aliases #6

ajshea opened this issue Sep 11, 2018 · 2 comments

Comments

@ajshea
Copy link

ajshea commented Sep 11, 2018

The Readme should be updated to show the correct syntax for adding aliases. The syntax is not mentioned at all, and aliased domains won't work with this plugin unless they are added in the config.

`` define( 'YOURLS_SITE', 'http://yourdomain.com' , 'http://aliaseddomain.com' );

This would not work for me until I found the correct syntax in a comment at the old Google Code repository:
https://code.google.com/archive/p/yourls-allow-aliases/issues/1

@mauamolat
Copy link

Does this mean that it let us use multiple domains for certain 1 instance of YOURLS?

@ajshea
Copy link
Author

ajshea commented Oct 26, 2019

Yes, but the domains all must resolve/point to the same directory. That's why they are called "aliases".

I use it so that YOURLS links work with www.domain.com and domain.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants