YOURLS-PV Road Map

with No Comments

YOURLS is a fantastic URL shortener. However, I have a wish list of things I wish YOURLS would do, like YOURLS MultiSite and giving YOURLS its own directory, like WordPress does. Speaking of WP, integration with a CMS like WordPress or a Simple Machines Forum. Even adding the simple feature of easily changing the /admin directory name for personal tastes (or improved security?) would be welcome.

If you want to get straight to the YOURLS MultiSite Roadmap, just scroll down to it!

See the GitHub Page.

The Easy Life

I have been thinking of a few personal matters this year. Like I am getting old and with fewer responsibilities, I am a bit bored. How do I define old? Consider this my granddaughter is a pilot! On one hand, it is not too surprising. I am a pilot. My son is also an airplane and helicopter pilot. So it is not too surprising that my granddaughter would become a pilot like her father and grandfather. On the other hand, it takes some time to have a son and granddaughter become pilots. Right?

The Programming Life

I likewise felt a little older the other day, when it was pointed out to me that I have been writing computer programs for more than 50 years! Even 20+ years since I first used Personal Home Page (Now Called PHP!)

The New Life

So now, retired with a couple dozen grandkids, I have decided to find some worthy projects and support them. The first is YOURLS MultiSite. Here is the Roadmap I began following, based on my above YOURLS Wish List.

YOURLS MultiSite Roadmap

YOURLS MultiSite is no longer just the above wish list. It is a real, working code. It is working on my development server, I am now building it into a public Proof-Of-Concept server to demonstrate most of YOURLS MultiSite features.

I am building YOURLS to be a drop-in replacement. In other words, FTP upload the new files and YOURLS MultiSite will work the same as your single YOURLS did before. Do some simple configuration and all the new features come alive!

Below is the YOURLS MultiSite Roadmap I am currently following.

The YOURLS MultiSite Roadmap

  • YOURLS MultiSite Proof-Of-Concept URLs – /s/ directory.

  • YOURLS MultiSite is a Drop-In Replacement.

  • Works for a Single-Sites or MultiSite.

  • Give YOURLS Its Own Directory, like WordPress!

  • Simple and Easy Configuration.

  • Easy to add more Domains to MultiSite.

  • Simple to use YOURLS MultiSite “Advanced” Configuration.

  • Easy to rename /admin directory.

  • Works with WordPress on the SAME Domain!

  • Testing YOURLS MultiSite.

  • Update Readme file to be more dynamic.

  • Update all HTML to HTML5 standards.

  • YOURLS MultiSite Production URLs – /yourls/ directory.

  • YOURLS MultiSite Limitations.

  • Redirect YOURLS subdirectory to the main directory using .htaccess…

  • Plugins For YOURLS Should Work.

  • Tested Plugins.

 

YOURLS MultiSite Proof-Of-Concept URLs

Running on ONE YOURLS MultiSite in the /s/ directory.
Note: The default is any unused YOURLS URI (examples /none /fail, /empty, or /default).

Note: z.z143.net has the following activated:

  • Allow hyphens in short URLs
  • define( ‘YOURLS_URL_CONVERT’, 62 );

 

YOURLS MultiSite is a Drop-In Replacement.

  • This should be copy/paste only
  • No Config File or .htaccess changes needed for the SAME Functionality
  • As easy as a YOURLS regular release.

 

Works for a Single-Site or YOURLS MultiSite.

  • Drop the New Code in and your YOURLS Single-Site is YOURLS MultiSite Ready.
  • Or Add all the NEW features of a YOURLS MultiSite to a YOURLS Single-Site!

 

Give YOURLS Its Own Directory, like WordPress!

Default /yourls (recomended)

  • can be /somedir
  • can be /some/other/dir
  • can be /anywhere/you/like/under/the/document-root/directory

 

Simple and Easy Configuration.

YOURLS site config file and .htaccess file should be copy/paste/modify – Same as now!

 

Easy to add more Domains to YOURLS MultiSite.

A simple site config file is all.

 

Simple to use YOURLS MultiSite “Advanced” Configuration.

  • Easy to use “advanced” config makes adding new domains a five-minute job.
  • Make a default configuration file for ALL Sites and override individual items on a site by site basis.
  • Use a default database for all or most sites AND/OR use a specific database for specific sites.
  • Use a default set of usernames/passwords for all or most sites AND/OR use a specific set of usernames/passwords for specific sites.

 

Easy to rename YOURLS /admin directory.

Simple config file entry changes /admin directory name. For example change the /admin directory to:

  • /secret
  • /my-secure-directory
  • /su-per-ca-li-fra-gil-is-tic-ex-pi-a-li-do-cious
  • /marie
  • /hidden-admin

 

Works with WordPress (and other CMS) on the SAME Domain!

  • Simple copy/paste/modify .htaccess configuration
  • Allows YOURLS MultiSite and WordPress to work together.
  • Works with WP MultiSite (Networks and Sub-Domains).

 

Testing YOURLS MultiSite.

  • Apache http:// Tested
  • Nginx http:// Not Yet Tested (Planned – I need a Linode)
  • Apache https:// Not Yet Tested
  • Nginx https:// Not Yet Tested (Planned – I need about $60 for a Linode)

 

Update Readme file to be dynamic.

  • Needs to automatically adapt instructions to dynamic directories.
  • Like /yourls/ and /admin/

 

Update all XHTML to HTML5 standards.

  • XHTML files have a few dozen validation errors.
  • When validated as HTML5 this jumps to about 100 errors.
  • New files should all validate as HTML5. (HTML, CSS, and Links)

 

YOURLS MultiSite Production URLs

Running on ONE YOURLS MultiSite in the /yourls/ directory.
Note: /none represents any unused YOURLS URI (example /fail, /empty, or /default).

Notice: This list is being built and some or all may currently fail until this notice is removed.

 

YOURLS MultiSite Limitations

Like WP MultiSite, One YOURLS Site per Domain Name.

Failed Domain Name Examples:

  • http://tait.asia
  • http://tait.asia/s (directory based site)
  • Fail – These two sites have the SAME Domain Name.

Failed Directory Name Examples:

  • http://tait.asia/y
  • http://vekind.org/s (directory based site)
  • Fail – These two sites have the different directory names.
  • Per YOURLS install ALL directory sites MUST use the same directory.
  • It is suggested to convert directory sites to the domain root.

These MAY be configured together:

  • http://tait.asia (WordPress Only Site)
  • http://tait.asia/s (YOURLS Only directory based site)
  • http://vekind.org (Both WordPress and YOURLS Site)
  • Notes: YOURLS MultiSite may serve as a replacement for the old way of using WP and YOURLS together.

A better plan would be to convert YOURLS http://tait.asia/s to http://tait.asia and redirect http://tait.asia/s to http://tait.asia in .htaccess…

 

Redirect YOURLS subdirectory to main directory using .htaccess…

=== Example One:
# Redirect http://example.com/e to http://example.com
# Change “example.com” to your domain name.
# Change e in ^e\/(.+)$ to your old yourls directory name.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(example.com)$ [NC] RewriteRule ^e\/(.+)$ http://%1/$1 [NC,R=301,L]

 

=== Example Two:
# Redirect http://tait.asia/s to http://tait.asia
# Change “tait.asia” to your domain name.
# Change s in ^s\/(.+)$) to your old yourls directory name.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(tait.asia)$ [NC] RewriteRule ^s\/(.+)$ http://%1/$1 [NC,R=301,L]

 

=== Example Three:
# Redirect http://vekind.org/v to http://vekind.org
# Change vekind.org to your domain name.
# Change v in ^v\/(.+)$) to your old yourls directory name.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(vekind.org)$ [NC] RewriteRule ^v\/(.+)$ http://%1/$1 [NC,R=301,L]

 

Plugins For YOURLS Should Work.

  • Using the standard install, All Plugins Should Work.
  • All Plugins have NOT been Tested.

 

Tested Plugins

The Following is a list of plugins that have been tested to work with YOURLS MultiSite.

  • Allow hyphens in short URLs

 

Leave a Reply