Elxis CMS Forum

Support => General => Topic started by: striker on August 15, 2024, 10:06:28

Title: Built-in URL shorterner or Permalink of Article ID
Post by: striker on August 15, 2024, 10:06:28
Hi datahell and team:

I am trying to figure out if there is another way to shortened the SEO friendly URL when sharing to social media sites.

Example:
Origional SEO friendly URL is, myDomain.Com/seo-friendly-url-of-article-id25

Objective: myDomain.Com/artID

artID can be the actual article ID number

Do I need a plugin for this?
Title: Re: Built-in URL shorterner or Permalink of Article ID
Post by: datahell on August 15, 2024, 13:47:39
You don't need a plugin for that, you can use any shortening URL service available.

For instance, this: https://www.elxis.org/blog/2-factor-authentication.html

can become this https://tinyurl.com/2zsxu6pz by using https://tinyurl.com (https://tinyurl.com)
or this https://bit.ly/3M4yKh8 by using https://bitly.com (https://bitly.com) (requires sign in)
or this https://rb.gy/t8nva2 by using https://free-url-shortener.rb.gy/ (https://free-url-shortener.rb.gy/)
or this https://shorturl.at/SIJE9 by using https://www.shorturl.at/shortener.php (https://www.shorturl.at/shortener.php)
etc... you can use any 3rd party service you want.

PS. A warning: My recommendation is not to use URL shorting services as you rely on a third party provider. Also from security perspective the final user doesn't know where he will be redirected,  https://tinyurl.com/2zsxu6pz might be a link to your site or to a porn site or to a phishing site to steal your personal credentials or credit card. I know people don't pay attention to that, but I personally never click such links, especially when they are inside an email message.

Tip: You can also setup your own redirections in apache's htaccess to shorten URLs (or something more advanced like this (https://opensource.com/article/18/7/apache-url-shortener)).
For example you can add a redirection from this:
https://www.example.com/123
to this:
https://www.example.com/first-category/sub-category/my-article.html
Title: Re: Built-in URL shorterner or Permalink of Article ID
Post by: striker on August 28, 2024, 17:56:55

Tip: You can also setup your own redirections in apache's htaccess to shorten URLs (or something more advanced like this (https://opensource.com/article/18/7/apache-url-shortener)).
For example you can add a redirection from this:
https://www.example.com/123
to this:
https://www.example.com/first-category/sub-category/my-article.html
[/quote]

Thanks for this suggestion datahell. I implemented this on my blog.

The intended audience of the link are my true followers who are familiar with the services I offer.