Author Topic: permalink / shortlink modules?  (Read 285 times)

Offline bupaje

  • Posts: 592
permalink / shortlink modules?
« on: September 21, 2021, 11:22:11 PM »
Way back there use to be a permalink and later a shortlink module if I remember to shorten unwieldy links. I was looking at the download links and they work fine on the download page of my site but if I want to share a link I'd love to have an alternate link (or a way to reduce the Download Gallery links).

Here is a current example

https://www.enduracladcoatings.com/modules/download_gallery/dlc.php?id=00648E8

and be nice to simplfy that to something like

https://enduracladcoatings.com/d/id=00648E8


Thanks,

Burt


Offline crnogorac081

  • Posts: 1995
  • Gender: Male
Re: permalink / shortlink modules?
« Reply #1 on: September 22, 2021, 06:49:26 AM »
Hello,

Google how to redirect filed using .htaccess it is easy to achieve
UI / UX Designer

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4459
  • Gender: Male
Re: permalink / shortlink modules?
« Reply #2 on: September 22, 2021, 11:26:45 AM »
Das Basis Short Url bezieht sich auf den Pages Ordner. Modules Link sind im Moment noch nicht für short urls vorgesehen

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline crnogorac081

  • Posts: 1995
  • Gender: Male
Re: permalink / shortlink modules?
« Reply #3 on: September 22, 2021, 02:33:15 PM »
Hello,

Google how to redirect filed using .htaccess it is easy to achieve

hello, here is untested solution

Code: [Select]
RewriteEngine On
RewriteCond %{QUERY_STRING} ^id=(.*)$
RewriteRule /modules/download_gallery/dlc.php https://enduracladcoatings.com/d/id=%1? [L,R=301]
UI / UX Designer

Offline VSG

  • Posts: 255
Re: permalink / shortlink modules?
« Reply #4 on: September 22, 2021, 05:17:14 PM »
Hi, take a look here.

This, to me, is the most ideal solution to what you are looking for. Works for me ever since.  :-)

Best regards,
VSG

Offline crnogorac081

  • Posts: 1995
  • Gender: Male
Re: permalink / shortlink modules?
« Reply #5 on: September 22, 2021, 05:49:32 PM »
Hi, take a look here.

This, to me, is the most ideal solution to what you are looking for. Works for me ever since.  :-)

Best regards,
VSG

It will not work for him because he also needs to redirect url from /modules/download_gallery/ to /d/ and also ID in url (filename should be "id=123456.php", second filename id=345678.php etc)

It can be done manually if he has few files but for big library best is to redirect like I posted few posts above
UI / UX Designer

Offline bupaje

  • Posts: 592
Re: permalink / shortlink modules?
« Reply #6 on: September 22, 2021, 08:02:50 PM »
Thank you everyone. I appreciate the support. Testing options now.

Offline hgs

  • Betatester
  • **
  • Posts: 1436
    • EFG MG
Re: permalink / shortlink modules?
« Reply #7 on: September 22, 2021, 08:08:44 PM »
good luck :)
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline crnogorac081

  • Posts: 1995
  • Gender: Male
Re: permalink / shortlink modules?
« Reply #8 on: September 22, 2021, 09:19:14 PM »
Thank you everyone. I appreciate the support. Testing options now.

If you dont figure out yourself send me pm it is 5min job.
UI / UX Designer

Offline bupaje

  • Posts: 592
Re: permalink / shortlink modules?
« Reply #9 on: September 23, 2021, 10:03:11 PM »
Thanks very much @crnogorac081. I didn't get it to work after a few tries so I installed YOURLS in a subdirectory and was able to generate short links with that. I don't anticipate more than 30-40 files and they won't change very often if ever so this will fit my need. I do appreciate every one's willingness to help though. This is still a great forum after all these years.  (Y)