Magento 可怕的域名错误

发布于 2024-12-14 21:08:48 字数 187 浏览 1 评论 0原文

我只是在我的 centos 6.0 服务器中解析域名。一切都对,但是!!

当我访问产品页面时,例如 www.example.com/productname.html,一切正常。但是当我访问没有“www”的同一页面时,例如 example.com/productname.html。它将被重定向到索引页面。

发生了什么?提前致谢!

I just Resolve Domain Names in my centos 6.0 server. Everything is right but!!

When I visit a product page, for example www.example.com/productname.html, everything is ok. But when i visit the same page without "www", for example example.com/productname.html. It will be redirect to the index page.

What happened? Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奶气 2024-12-21 21:08:48

确保您的 .htaccess 不会将所有网址重写到索引页

Make sure that your .htaccess does not rewrite all your urls to index page

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文