[英]Magento contact form gives 404 page on submit?
I searched the net to find a solution for this, but all I could find does not work in my case. 我在网上搜索以找到解决方案,但在我看来,所有发现都无法解决。 I have a contact CMS page under https://example.com/contact-us .
我在https://example.com/contact-us下有一个CMS联系人页面。
The form displays fine. 表单显示正常。 When I fill in data and hit the submit button, it gives me the 404 error.
当我填写数据并点击提交按钮时,它给我404错误。
I tried all possible URLs for the form URL, but none of them worked so far. 我尝试了所有可能的URL形式的URL,但到目前为止它们都没有起作用。 This is what I am currently using:
这是我目前正在使用的:
{{block type="core/template" name="contactForm" form_action="https://example.com/index.php/contacts/index/post/" template="contacts/form.phtml"}}
Could the https be the problem? https可能是问题吗? If not, what else could I try?
如果没有,我还能尝试什么?
Thanks! 谢谢!
Try this one: 试试这个:
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}
or 要么
{{block type="core/template" name="contactForm" form_action="{{store direct_url='contacts'}}/index/post" template="contacts/form.phtml"}}
Please notice form_action. 请注意form_action。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.