Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
No redirection when using "www" #2354
Just a clue...
After I made the last YOURLS_SITE patch, I tested the www vs no-www issue and both worked.
I then used server configuration (.htaccess) to make the following tests:
Therefore, the 17 changes that the YOURLS_SITE patch made, may have touched on the problem.
As I said, this is just a clue!
@ozh - I have stopped working on the YOURLS_SITE patch. The more I worked on it, the more I became aware that it would be better to just move core constants into the DB and serve them as options through $ydb. Therefore, I am actively working on an admin config page for that purpose. This plus the full-fledged installer should solve this problem, the trailing slash problem, and the split YOURLS_SITE problem.
We run 1.7.2 and were having this problem. I put a dirty fix in and wanted to share for anyone else. It fixes urls with www. in them but doesn't fix other subdomains.
In yours-loader.php, find the line below (~line 21)
After it, add: