URL Short

Last updated: June 12th, 2024

Intro

The URL Short is a service that shortens long and awkward URLs.
The service is free of charge and offers additional benefits such as tracking and management in conjunction with a free account.

The default Short URL is "https://l.on25space.com/?l=00", below you will learn how to connect your own domain.

Product website Create URL website

Private URL

Description

The following instructions offer a way to change the default URL "https://l.on25space.com" into a personal one. This will redirect you from your site to our systems.

Requirements

You must be able to edit the desired file/website (preferably index.php) and insert PHP code there.
In addition, your host/system must enable/allow the execution of PHP code.

We use the variable "urlid" by default, which therefore must not be used by other systems or applications on your website. However, people with experience can change this variable.

No further settings are necessary for this, the code is immediately functional.
Please note: the forwarding or use of the short links is not reduced to your personal short links. It is possible to call up any existing short link (as far as the URL-ID is known) via this URL.

Examples

Possibilities how an individual URL can look like. The following example uses the domain "25space.com".
The following URLs are only an example and not technically functional.

  • https://yourdomain.com/?l=00
  • https://yourdomain.com/mylink.php?l=00
  • https://yourdomain.com/subpage/?l=00
  • https://subdomain.yourdomain.com/?l=00
  • ...

Code

Insert the following code into the desired file/page as described above.


<?php
// 25Space.com URL Short
// Individual URL v2.1/ 25space.com/urlshort
$urlid = $_GET['l'];		
if ($urlid == ""){
	//stayonwebsite
} else {
	echo "<meta http-equiv=\"refresh\" content=\"0; URL=https://l.on25space.com/?l=$urlid\" />";						
}							
?>
										

Below you will find an example with a full html page.

<html>
	<head>
	<title>This is a URL-Short page</title>
	</head>
	<body>
		<h1>Welcome to my test website!</h1>
		<p>Here is some cool stuff.</p>
		
		<?php
		// 25Space.com URL Short
		// Individual URL v2.1/ 25space.com/urlshort
		$urlid = $_GET['l'];		
		if ($urlid == ""){
			//stayonwebsite
		} else {
			echo "<meta http-equiv=\"refresh\" content=\"0; URL=https://l.on25space.com/?l=$urlid\" />";						
		}							
		?>
		
	</body>
</html>
										

















Do you like cloud technology and services?

25Space.com Cloud

25Space.com - Universal Cloud Platform.

Discover the 25Space.com cloud, universal products for businesses, developers and startups. Web hosting, infrastructure and services. Central platform management and administration, connection to Azure, AWS and other services.
Start today with a permanent free basic account.

[TIP]: Please also pay attention to our free offers like URL Shortner or Welcome View. Now for you available.

Sign Up for free