Happy New Year! Enjoy 30% OFF 🎄
Coupon Code: XMAS30 - Renew: XMAS_RENEW30

On our website, we have a menu, that then leads users to the page. For example one of the menu items goes to: https://www.salinapubliclibrary.org/programsservices/join/friends

How would I make that link just a direct link to https://www.salinapubliclibrary.org/friends
rather than have it show the menu path that it is taking?
Is that possible?
(We do that with non-menu items, just wondering since this is part of our menu if that can be done.)

    You could use an extension to optimise the url - like sh404sef but as Pavit suggested I would use the htaccess instead as it will be simpler

    Cheers
    Paul

    9 days later

    My current link within the site is: https://www.salinapubliclibrary.org/programsservices/join/friends

    I'd like anyone with this link: (a simpler one) https://www.salinapubliclibrary.org/friends .... for it to take them to the above link with that information.

    So in .htaccess file I can point https://www.salinapubliclibrary.org/friends even though it doesn't really exist to go to https://www.salinapubliclibrary.org/programsservices/join/friends

    Is this correct?

    Redirect old file path to new file path

    Redirect https://www.salinapubliclibrary.org/friends https://www.salinapubliclibrary.org/programsservices/join/friends

    Place it at the bottom of .htaccess?

      Hi melanie-h

      Find in your .htaccess RewriteEngine on and add just below it your 301 redirect

      Options +FollowSymLinks 
      RewriteEngine on 
      Redirect 301 /https://www.salinapubliclibrary.org/friends https://www.salinapubliclibrary.org/programsservices/join/friends

      Hope it helps

      I had tried taking it out... but still didn't have any luck earlier.
      Tried again. Here's what I have.

      I still get 404 error on the https://www.salinapubliclibrary.org/friends

      RewriteEngine On
      Options +FollowSymLinks
      RewriteEngine on
      Redirect 301 https://www.salinapubliclibrary.org/friends https://www.salinapubliclibrary.org/programsservices/join/friends
      RewriteCond %{HTTPS} off
      RewriteRule (.*)$ https:/salinapubliclibrary.org/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

        melanie-h

        Could you please edit your first post and add to it a working url for your administrator page with a super user account for it ? also a working ftp account

        I will have a look at it

          Hi melanie-h

          I don't know where you added it before , anyway i added it now to your .htaccess file and redirect is working fine.

          Best regards

            pavit
            Odd, I was in .htaccess but i was editing from my webhost. Apparently the data wasn't saving, despite saving.

            I see it now.

            Thank you. I appreciate the help.

            pavit locked the discussion.
            Write a Reply...
            You need to Login to view replies.