Magento 可怕的域名错误
我只是在我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您的 .htaccess 不会将所有网址重写到索引页
Make sure that your .htaccess does not rewrite all your urls to index page