• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

permalink / shortlink modules?

Started by bupaje, September 21, 2021, 11:22:11 PM  ( Read 20,700 times )

bupaje

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


    crnogorac081

    Hello,

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

      Luisehahne

      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!

        crnogorac081

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

          VSG

          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

            crnogorac081

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

              bupaje

              Thank you everyone. I appreciate the support. Testing options now.

                hgs

                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)

                crnogorac081

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

                  bupaje

                  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)

                    \n\n