2

I have permalinks set to "Post name".

If I put in my address bar: http://www.example.com/section1/whitepapers/, WordPress loads it correctly, but if I send a POST or GET request to the same URL, it throws a 404 error inside WordPress.

This is my htaccess file: https://gist.github.com/3062205

Could someone shed a light on what might be happening here?

NOTE: The 404 error is thrown by WordPress, it's not a Server 404 message.

LuisVM
  • 2,763
  • 3
  • 20
  • 22
  • are you using a custom page template on that url? if not, try creating a page template assign to that page, in your template file before the get_header call, add this echo "
    "; print_r($_POST); print_r($_GET); echo "
    "; or add that to your template header file.
    – Marty Jul 06 '12 at 22:46
  • hi Marty, yes, I'm using a custom page template, I've tried that before but seems like the url is not even recognized, it redirects me to a 404 error page even though it's the same URL. – LuisVM Jul 06 '12 at 23:09

2 Answers2

2

What parameters do you submit with the GET and POST requests. Wordpress will strip out any parameters with 'name' in it. I my case i renamed a parameter 'firstname' to 'fn' and it worked. See wordpress-404page-not-found-on-form-posted-data

emeraldjava
  • 10,894
  • 26
  • 97
  • 170
1

could your url be redirecting from WWW to nonWWW or vice-versa?

Can you see the header response it returns

fedmich
  • 5,343
  • 3
  • 37
  • 52
  • Hi fedmich! thanks for your fast response, I do have access to the header response and I made sure it's not redirecting from WWW to non WWW or viceversa. – LuisVM Jul 06 '12 at 21:20