WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => Modules => Topic started by: bupaje on September 21, 2021, 11:22:11 PM

Title: permalink / shortlink modules?
Post by: bupaje 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

Title: Re: permalink / shortlink modules?
Post by: crnogorac081 on September 22, 2021, 06:49:26 AM
Hello,

Google how to redirect filed using .htaccess it is easy to achieve
Title: Re: permalink / shortlink modules?
Post by: Luisehahne 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
Title: Re: permalink / shortlink modules?
Post by: crnogorac081 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]
Title: Re: permalink / shortlink modules?
Post by: VSG on September 22, 2021, 05:17:14 PM
Hi, take a look here (https://forum.WebsiteBaker.org/index.php/topic,25367.msg172900.html#msg172900).

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

Best regards,
VSG
Title: Re: permalink / shortlink modules?
Post by: crnogorac081 on September 22, 2021, 05:49:32 PM
Hi, take a look here (https://forum.WebsiteBaker.org/index.php/topic,25367.msg172900.html#msg172900).

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
Title: Re: permalink / shortlink modules?
Post by: bupaje on September 22, 2021, 08:02:50 PM
Thank you everyone. I appreciate the support. Testing options now.
Title: Re: permalink / shortlink modules?
Post by: hgs on September 22, 2021, 08:08:44 PM
good luck :)
Title: Re: permalink / shortlink modules?
Post by: crnogorac081 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.
Title: Re: permalink / shortlink modules?
Post by: bupaje 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)