WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • Modules »
  • permalink / shortlink modules?
  • Print
Pages: [1]   Go Down

Author Topic: permalink / shortlink modules?  (Read 16275 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

Logged

Offline crnogorac081

  • Posts: 2163
  • 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
Logged
Web developer

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • 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
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline crnogorac081

  • Posts: 2163
  • Gender: Male
Re: permalink / shortlink modules?
« Reply #3 on: September 22, 2021, 02:33:15 PM »
Quote from: crnogorac081 on September 22, 2021, 06:49:26 AM
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]
Logged
Web developer

Offline VSG

  • Posts: 278
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
Logged

Offline crnogorac081

  • Posts: 2163
  • Gender: Male
Re: permalink / shortlink modules?
« Reply #5 on: September 22, 2021, 05:49:32 PM »
Quote from: VSG 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

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
Logged
Web developer

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.
Logged

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1892
    • EFG MG
Re: permalink / shortlink modules?
« Reply #7 on: September 22, 2021, 08:08:44 PM »
good luck :)
Logged
LG Harald

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

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline crnogorac081

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

If you dont figure out yourself send me pm it is 5min job.
Logged
Web developer

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)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • Modules »
  • permalink / shortlink modules?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2