Search results open non https pages

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search results open non https pages

This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13482
    labber
    labber
    Participant

    When I do a search on the website, any result I click brings me to an http URL instead of an HTTPS, how can I fix this?

    #13483
    labber
    labber
    Participant

    I was able to fix it for now by using a plugin: https://wordpress.org/plugins/https-redirection/ But it would be nice if I didn’t need it.

    #13488
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    The plugin requests the result URLs from WordPress core itself with the get_permalink(..) function. If the protocol is not correct, there is a good chance that either within the wp-config.php or within the database the site URL is not set correctly – it especially applies for cases where the site was transitioned from http to https. I recommend checking the site URLs in both wp-config.php and on the back-end as well to make sure it’s indeed set correctly. The plugin does not affect these values, it serves the urls as returned from the WordPress core.

    Alternatively this custom code can be used to make a correction if nothing helps at all:

    Let me know!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.