Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 after submission #55

Open
iDzine opened this issue Nov 7, 2015 · 0 comments
Open

404 after submission #55

iDzine opened this issue Nov 7, 2015 · 0 comments

Comments

@iDzine
Copy link

iDzine commented Nov 7, 2015

Hi,

Just wanted to post this as a solution for others with same issue.
If you get an 404 after a form is submitted, check if the url after submission contains index.php?p= or not.

With my setup, it was even though I had my .htaccess configured not to use it.
On another site I had exactly the same config and there it was working without an issue, so I compared every used file, but couldn't find any mismathc.
So while searching the Issues here and not getting my answer I've found another hint in Craft CMS forums with a similar behavior on a {{craft.request.url()}}.

In /craft/config/general.php, define next in the array: 'omitScriptNameInUrls' => true,

That should solve it then.

Cheers,

Eric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant