Redirect URL incorrectly includes /wordpress

This topic contains 3 replies, has 3 voices, and was last updated by  Patrik 4 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #7987

    compradesdecasa
    Free User
    Post count: 7

    Hello.

    In UsersWP -> Social -> Facebook my social plugin setup tells me to use this URL:

    Use https://www.compradesdecasa.cat/wordpress/uwphauth/facebook for Authorized redirect URI

    But when I get redirected to it it does not exist and get a 404 Not found.

    If I remove “wordpress” from the URl and just reload the page https://www.compradesdecasa.cat/uwphauth/facebook
    then it works.

    My guess is that it has to do with WP_SITEURL. My wp-config read like this:
    define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘SERVER_NAME’] . ‘/wordpress’);
    define(‘WP_HOME’, ‘http://’ . $_SERVER[‘SERVER_NAME’]);

    The question is how can I configure the correct URL without /wordpress? Why is it generated wrongly?

    Thanks
    Pau

    #7990

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #7991

    compradesdecasa
    Free User
    Post count: 7

    Hosted in Digitalocean, but modified as stated above.

    #8006

    Patrik
    Moderator
    Post count: 1971

    Hi,

    In the general case, the site URL and home URL should be the same but on some of the hosting, the WordPress files are located at a different location then it can be different. But for redirect URL we use site_url() and that’s why you are facing this issue. You can talk with your hosting and make both the URLs same. We will do the changes in our code for using home_url() instead of site_url() and release an update in a few days.

    Regards,
    Patrik

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket