Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Tiny URL

Bruno Meilick edited this page Mar 4, 2020 · 1 revision

This plugin allows you to use the AutoID value in a shortend URL. It also registers a route to redirect from the shortend URL to the actual page. Retrieve the shortend URL it with the tinyurl() Page-Method.

echo $page->url(); // https://devkit.bnomei.com/autoid/test-43422931f00e27337311/test-2efd96419d8ebe1f3230/test-32f6d90bd02babc5cbc3
echo $page->autoid()->value(); // 8j5g64hh
echo $page->tinyurl(); // https://devkit.bnomei.com/x/8j5g64hh

Settings

bnomei.autoid. Default Description
tinyurl.url callback returning site()->url(). Use htaccess on that domain to redirect RewriteRule (.*) http://www.bnomei.com/x/$1 [R=301]
tinyurl.folder x Tinyurl format: yourdomain/{folder}/{hash}
Clone this wiki locally