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
Hello,
Google how to redirect filed using .htaccess it is easy to achieve
Das Basis Short Url bezieht sich auf den Pages Ordner. Modules Link sind im Moment noch nicht für short urls vorgesehen
Dietmar
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
RewriteEngine On
RewriteCond %{QUERY_STRING} ^id=(.*)$
RewriteRule /modules/download_gallery/dlc.php https://enduracladcoatings.com/d/id=%1? [L,R=301]
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
Quote from: 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
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
Thank you everyone. I appreciate the support. Testing options now.
good luck :)
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.
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)