A flat file URL shortener written in PHP.
- Download and extract this repo.
- Create a .txt file in the urls directory for what you want your shortened URL to end with e.g. for yourdomain.com/example you would create example.txt in the urls directory.
- Inside your newly created .txt file, paste the URL you wish to shorten e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ and make sure there's NOTHING ELSE in the file (no blank lines either).
- Upload everything to your PHP-enabled web server.
I have created an example shortened URL urls/example.txt based on the above setup guide.
If you like this repo or used any of the code, please star ⭐ it and consider supporting me below...