href中的URL将本地主机和域名混合在一起

问题描述 投票:1回答:1

我使用opencart构建的Web产品链接将域名链接添加到锚标记中href内的localhost,如代码所示]

<div class="product-image-wrap">
    <div class="image">
        <img src="/" title="Oyster Platters" alt="Oyster Platters">
        <a href="http://127.0.0.1/https://thewebname.com/index.php?option=com_mijoshop&amp;route=product/category&amp;path=49">
            <div class="item-content animate">
                <p>Discover<img alt="arrow" src="/images/icones/arrow-white.png"></p>
            </div>
        </a>
        </div>
</div>

我的.htaccess也很干净,我还在数据库中的所有地方搜索了链接正确链接的链接:index.php?option=com_mijoshop&amp;route=product/category&amp;path=49

如果我将链接放在任何浏览器的地址栏中

http://127.0.0.1/index.php?option=com_mijoshop&lang=en&order_id=6954&order_product_id=10879&route=account/order/reorder&Itemid=221

它将转换为

http://127.0.0.1/https://thewebname.com/index.php?option=com_mijoshop&route=product/category&path=49

我没有使用任何SEO。

我的带有opencart的Web构建,产品链接将锚点标记中的href内的域名链接添加到localhost中,如代码所示

...
]
< [
最欢迎来到这里

请检查两个config.php文件。 http和https设置正确]

// HTTP define('HTTP_SERVER', 'http://127.0.0.1/'); // HTTPS define('HTTPS_SERVER', 'https://127.0.0.1/');

我想我的回答对你很高兴。如果你喜欢我。您可以标记答案。

谢谢
php .htaccess opencart2.x
1个回答
0
投票
最欢迎来到这里
© www.soinside.com 2019 - 2024. All rights reserved.