• Hi,

    I have a URL that opens up a WordPress page.

    The problem I have is that whenever I have a query variable named “name”, I get a page not found error (404) instead of my page.

    The following results in a page not found (404) error:
    https://my_domain/my_page?name=value

    The following works fine and loads “my_page”:
    https://my_domain/my_page?var=value

    My real-world case is more complex, having several query parameters, but whenever “name” is present as a parameter name, regardless of its position, I get the 404 error.

    Is there a way to work around this by means of a writing a filter or action handler to rewrite the URL? I’ve tried changing the .htaccess file but it seems to have no effect.

    Thanx.

Viewing 1 replies (of 1 total)
  • I know this is an old post, but some query string variables seems to be reserved for WordPress functions. I can’t seem to find a list of what variable names are reserved, but I know that m and s doesn’t work either.

    Does anyone know where a list of reserved query string variables can be found?

Viewing 1 replies (of 1 total)
  • The topic ‘name query string parameter gives 404.’ is closed to new replies.