Documentation URL Shortener

URL Shortener

🚀 Overview The URL Shortener Plugin for DataLife Engine (DLE) allows administrators and users to generate clean, secure, and fully customizable short links directly inside their DLE website. No third-party serv...

2 min
All articles

URL Shortener

Last updated February 21, 2026

🚀 Overview

The URL Shortener Plugin for DataLife Engine (DLE) allows administrators and users to generate clean, secure, and fully customizable short links directly inside their DLE website.

No third-party services required. Full control over links, analytics, expiration, and redirects.


✨ Key Features

  • ✔ Automatic short code generation
  • ✔ Custom alias support
  • ✔ 301 & 302 redirect types
  • ✔ Click tracking & statistics
  • ✔ Expiration date control
  • ✔ Admin panel management
  • ✔ SEO-friendly structure
  • ✔ Frontend shortcode support
  • ✔ Secure server-side validation
  • ✔ Lightweight & optimized

⚙ How It Works

  1. User submits a long URL.
  2. Plugin generates a unique short code.
  3. Short link is stored securely in the database.
  4. System tracks clicks and handles redirects automatically.

Example:

https://yourdomain.com/s/abc123

🛠 Admin Panel Features

  • View all created short links
  • Edit custom aliases
  • Enable / Disable links
  • Set expiration date
  • Monitor click statistics
  • Delete links instantly

📈 Perfect For

  • Affiliate marketing links
  • Download page redirects
  • Marketing campaigns
  • Social media sharing
  • Internal link tracking
  • Event & campaign analytics

🔍 SEO Benefits

  • Clean branded URLs
  • Permanent (301) redirect support
  • No external shortener dependency
  • Full link ownership
  • Improved analytics & performance tracking

.htaccess

Dle 19.0 ⬆️:

In user friendly URL's

    /s/{code}.html
    /index.php?do=shortlink&code={code}

Dle 19.0 🔽:

In file .htaccess find RewriteEngine On after paste this code

RewriteRule ^s/([a-zA-Z0-9_-]+)/?$ index.php?do=shortlink&code=$1 [L,QSA]

Redirect template:

Yor templates/redirect.tpl


📦 Requirements

  • DataLife Engine 13.x+
  • PHP 7.4+ (PHP 8.x recommended)
  • MySQL / MariaDB
  • mod_rewrite enabled

🧩 Installation

  1. Upload plugin files to your DLE installation.
  2. Import provided SQL file.
  3. Add rewrite rule to .htaccess.
  4. Clear DLE cache.

🔐 Security

  • SQL injection protection
  • CSRF validation
  • Safe redirect handling
  • Optional IP tracking
  • Expiration control

⚡ Performance Optimized

  • No external API calls
  • Minimal database queries
  • Indexed structure
  • High-traffic ready

💬 Support & Updates

Regular updates and improvements.
If you need help, feel free to contact support.


🔥 Take Full Control of Your Short Links Today!

Upgrade your DLE website with a secure and powerful URL Shortener Plugin.

Need help?

Answers to the most common questions.

Contact