• I’m having a very odd issue with page url / permalinks syntax.

    I have a query that searches an small MySQL table (outside WordPress). The query looks like:

    https://www.websiteurl.com/page-name/?year=2016&location=town&month=January&date=01

    The page (page-name) has a small php script on it that searches the database and returns the results of the query. Works great.

    EXCEPT, when I change the year in the query:
    https://www.websiteurl.com/page-name/?year=2017&location=town&month=January&date=01

    This generates a 404-error (note — not a database error, a 404 error).

    I’ve checked the database — it’s fine and there is a record that would match the query;

    I’ve checked the slug for the page — it’s correct (and at rate, it’s identical to the 2016 query)

    I’m guessing this has something to do with WordPress’ permalinks system (something to do with the “year=”, but I can’t figure out why it’s being triggered. The publishing date on the page is 2016, so maybe that’ why the 2016 query works and the 2017 doesn’t?

  • The topic ‘Page url / permalinks syntax issue’ is closed to new replies.