Login redirects to url

This topic contains 8 replies, has 3 voices, and was last updated by  Stiofan O’Connor 10 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #35926

    ict con
    Expired Member
    Post count: 44

    Hello,

    When i login to the website there is a url redirection that causes a redirection to a parant domain in a shared hosting config.

    The login url is like:
    http://www.domain.com?geodir_signup=true&logemsg=1&redirect_to=http%3A%2F%2Fdomain.com%2F

    Do i need to add some line to .htacces.

    #35927

    ict con
    Expired Member
    Post count: 44
    This reply has been marked as private.
    #36035

    Guust
    Moderator
    Post count: 29970

    I would think this is more a control panel setup problem.
    You have your site setup as a subdomain instead of an add-on domain it seems.
    Can you post your control panel details and WP admin details?

    #36047

    ict con
    Expired Member
    Post count: 44
    This reply has been marked as private.
    #36048

    ict con
    Expired Member
    Post count: 44
    This reply has been marked as private.
    #36058

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Guust,

    I’m not sure what’s going on here 🙂

    Let me know if u need my help here or if u got this.

    Stiofan

    #36062

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #36148

    ict con
    Expired Member
    Post count: 44
    This reply has been marked as private.
    #36149

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The problem was the $_SERVER[“SERVER_NAME”] was wrong, i added the filter below to fix the problem:

    
    
    add_filter('geodir_curPageURL','my_change_server_name',10,1);
    function my_change_server_name($pageURL){
        $pageURL = 'http';
        if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {
            $pageURL .= "s";
        }
        $pageURL .= "://";
        $pageURL .= "www.WEBSITE-NAME.com" . $_SERVER["REQUEST_URI"];
        //return str_replace("www.", "", $pageURL);
        return $pageURL;
    }
Viewing 9 posts - 1 through 9 (of 9 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount