How are links created in listings widgets

This topic contains 8 replies, has 2 voices, and was last updated by  Alex Rollin 5 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #463505

    directoryfan
    Expired Member
    Post count: 157

    Hello Support Team,

    I have moved my first GD project from classic managed web hosting to cloudways. And everything is working well so far, but the images aren’t displayed in the listings widgets on the homepage. When I lookt into it with firebug I see that the link creation of the images to the uploads folder is not ok.

    Would you like please to support me in this?

    Thank you a lot, Marius

    #463506

    directoryfan
    Expired Member
    Post count: 157
    This reply has been marked as private.
    #463507

    Alex Rollin
    Moderator
    Post count: 27815

    I see the images on the front page.
    Can you send a screenshot of where we should be looking, and a link to be sure?

    #463536

    directoryfan
    Expired Member
    Post count: 157

    Indeed, this was a problem or is jutst a chrome related problem. I do not understand what is happening.

    So if I load the home page with chrome this code will be created:

    
    
    <div class="geodir-post-img ">
                                                                <a href="https://kundaliniyoga-bw.de/kursorte/baden-wuerttemberg/ueberlingen/yogakurse/yoga-entspannung-in-ueberlingen/"><div data-src="http://kundaliniyoga-bw.de/wp-content/uploadshttps://kundaliniyoga-bw.de/wp-content/uploads/2019/01/867_20180513_154732-Kopie-768x461.jpg" class="geodir_thumbnail geodir_lazy_load_thumbnail" title="Yoga & Entspannung in Überlingen" aria-label="Yoga & Entspannung in Überlingen" style="background-image: url(&quot;http://kundaliniyoga-bw.de/wp-content/uploadshttps://kundaliniyoga-bw.de/wp-content/uploads/2019/01/867_20180513_154732-Kopie-768x461.jpg&quot;); opacity: 1;"></div></a>
                                    <a href="https://kundaliniyoga-bw.de/kursorte/baden-wuerttemberg/ueberlingen/yogakurse/yoga-entspannung-in-ueberlingen/"><span class="geodir_new_listing">&nbsp;</span></a><span class="geodir-addtofav favorite_property_867"><a class="geodir-addtofav-icon" href="javascript:void(0);" onclick="javascript:addToFavourite(867,'add')" title="Zu Favoriten hinzufügen"><i class="fas fa-heart"></i> Favorit</a></span>
                                    </div>

    Thank you Alex for the support

    #463539

    directoryfan
    Expired Member
    Post count: 157
    #463545

    directoryfan
    Expired Member
    Post count: 157

    I can reproduce this. It is related to the .htaccess code, related to the rewrite condition for Apache:

    
    
    #force to non-www
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.kundaliniyoga-bw.de [NC]
    RewriteRule ^(.*)$ http://kundaliniyoga-bw.de/$1 [L,R=301]
    #force to https
    RewriteEngine On
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

    https://support.cloudways.com/what-can-i-do-with-an-htaccess-file/

    When the conditions above are active, then the http link to uploads folder is added in front of the right link (http://kundaliniyoga-bw.de/wp-content/uploadsttps://k…)

    http://kundaliniyoga-bw.de/wp-content/uploadshttps://kundaliniyoga-bw.de/wp-content/uploads/2019/01/867_20180513_154732-Kopie-768×461.jpg

    What should I do know, is this something that I have to solve with you or with cloudways?

    Thank you

    #463559

    directoryfan
    Expired Member
    Post count: 157
    This reply has been marked as private.
    #463564

    directoryfan
    Expired Member
    Post count: 157

    It has to to with the https version of the site. Over http images are displayed, over https not. I have problems to understand what is happening. For some reason I can not post here anymore? I have posted another answer twice and nothing happened.

    Thank you for your support

    #463655

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    apologies, a couple of your replies got caught by the spam filter.

    Cloudways can help you with your htaccess and ssl.

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