Mistakenly posted this on the Issue Tracker. Moving it here! Because I’m fekkin’ confused.
Describe the bug
Upon installing YOURLs, all created shortlinks fail with a 404.
Steps to reproduce the behavior:
- Install YOURLs, with complete successful install (No Debug errors or install errors)
- Open Admin toolbar
- Select one of the three preloaded shortlinks, or a new created shortlink
- Open URL in new tab
- URL 404s.
URL links to the indicated link.
URL Link fails with a 404 Not Found error.
Admin Dashboard with Links, 404 Error Given: https://imgur.com/a/RszU8GC
- OS: Ubuntu 18.04.3 LTS
- Browser: FireFox 70.0.1
- Web Server: Apache2
- PHP Version: 7.2.24
- MySQL Version: 14.14
- YOURLs version: 1.7.4
I know this error has been discussed before, however, I’m almost certain that I’ve tried everything suggested. Read through open and closed issues on the topic.
Access.log, YOURLS config, web server config, and HTACCESS.
Also of note, the site is enabled on CloudFlare. I don’t think this should do anything but, hey. Info is Info. All files in the /var/www/hsshort directory is owned by www-data, recursively. The YOURLs instance is hosted on the same machine as two other sites, but the YOURLs directory/area is in it’s own section.
Server does have mod_rewrite enabled, as well as the correct .htaccess from the example on the wiki for a root directory install.