- This topic has 2 replies, 2 voices, and was last updated 9 years, 10 months ago by .
- The topic ‘Passing query in url Associate theme’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I've narrowed this down to where I'm pretty sure it's theme related. First, I was trying to pass form variables using the gravity form plugin (which normally works fine). But as soon as the ? is added to the end of the url, the page does not redirect correctly - it continues to go to a 404 error page.
I thought at first there was an issue with gravity forms, but when I tried the normal wordpress search which adds ?s=mysearchterm, the same thing happens.
I deactivated all plugins and the issue remains. I'm positive there aren't any redirects set up anywhere. And the same issue is on two different hosts, so it's not the hosting server either.
Has anyone else had this same issue and been able to get it resolved?
Thanks for any help.http://injurylaworegon.com/
The problem turned out to be that you can't use "name" as a variable name in the query part of the url. It acted similar to performing a search.
The wordpress search will work when done from the homepage only, which could be related to the use of .htm on our url's. So this isn't a problem because we're not using a search box on the site. If we add one, I can adjust the search form action accordingly so it works correctly.
It's hard to see exactly from the outside, but I see a very big suspect: the permalinks. You're adding ".htm" as a suffix, possibly to preserve SEO from an older site.
I just did a quick test adding .htm to permalinks, and it worked great, including search. That only works for Posts, however, and you're doing something special to make the pages do .htm permalinks. I would have suspected Yoast, which as cool as it is, does crazy complicated processing, but you had tried disabling all plugins.
Hard to say, but I have one last idea for what could be a research project... even if you disable all plugins, some discourteous plugins may leave their code in your .htaccess file, including stuff playing with your links.
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
© 2024 WPEngine, Inc.