1

I have a URL query string containing a number and it redirects and gives a 404 error as the page does not exist. If I change the value of the parameter to characters it works. I'm guessing it's something to do with wordpress pagenation.

Examples

https://www.ppc.com.au/ndeftest?m=23345 'redirects 404 error

https://www.ppc.com.au/ndeftest?m=test 'does not redirect - works as required

I need to pass the number variable to the page. It comes from a standard NTAG feature on smartcards that automatically appends the card serial number to the URL so I don't have many options to change the URL appearance.

(the code on the landing page is not correct, but I will fix that once the parameter is passed)

4
  • 2
    m is the query var for year/month, see Reserved Terms for a list of query string vars that you should avoid.
    – Milo
    Commented Nov 6, 2017 at 4:44
  • Thanks, Milo, no it's not a year/month so that may be the problem if I change the m to something else it works. I'm not sure I can change the m in the application but will take it up with them.
    – jasonhicks
    Commented Nov 6, 2017 at 6:17
  • Hi Milo, if you post that as the answer I will confirm it - thank you again.
    – jasonhicks
    Commented Nov 6, 2017 at 6:24
  • was getting this when trying to do p=2, using pg=2 works fine
    – timhc22
    Commented Jul 25, 2020 at 16:10

1 Answer 1

2

m is the built-in query var for year/month, see Reserved Terms for a list of query string vars that you should avoid.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.