Publish: 2022-03-14 | Modify: 2022-03-14
https://xw.al/ is a short URL service launched by Xiaoz over a year ago. The backend uses the YOURLS short URL program, and the frontend uses the Bootstrap framework.
If you are not familiar with YOURLS, you can refer to my previous two articles:
This time, Xiaoz has contributed the frontend interface of xw.al
. Students who need it can follow the WeChat official account of Xiaoz's blog "This Software is Interesting" and reply with xw.al
to get the download link.
After downloading, there are three core files:
index.html
api.php
ext.php
Put these three files in the root directory of YOURLS. The content in index.html
can be modified, including the navigation menu and other content.
Modify api.php
Log in to the YOURLS backend - Tools - Secure API Calls - Get Secret Signature Token.
And fill in the following place in api.php
:
#Please change xxx to your own secret signature token
define("TOKEN",'xxx');
In addition, the following two parameters also need to be modified:
//Default domain, please change it to your own domain, including https://, no need for a trailing /
define("DOMAIN","https://xw.al");
//Daily limit per IP
define("LIMIT",50);
In addition to the frontend interface, this UI also supports public API calls. For specific instructions, please refer to the README.md
file in the compressed package.
After the environment is ready, theoretically, you only need to modify the 3 places on the top of api.php
to use it. If you have any questions, please leave a comment for feedback. If you need one-on-one technical support, you can contact me on QQ: 337003006 (Note: Free technical support is not provided).
I come from China and I am a freelancer. I specialize in Linux operations, PHP, Golang, and front-end development. I have developed open-source projects such as Zdir, ImgURL, CCAA, and OneNav.