How to Redirect YOURLS Root URL

June 6, 2015

YOURLS lets you easily create your own URL shortening service, a la By default, the YOURLS domain root takes you to a login page to access the administration backend. Here’s how to redirect it somewhere else.

  1. FTP into the YOURLS installation folder.
  2. Create a file and name it index.php if it doesn’t already exist.
  3. Copy and paste the code below into index.php.
  • <?php
  1. Change the URL as needed.
  2. Make sure to save the file.

That’s it! I used this method to redirect to



Find me on Twitter, or email me.