Odd behavior passing variables via URL...

To start this is on WordPress, so I know that comes with its own issues, however, the results of passing variables via a URL are still acting funny.

This is a sample of where it’s working as it should (or as I want it to):
http://grassrootsindiana.com/2017-blue/

The player names are linked to ‘teampage’ with nameFull and year variables.

http://grassrootsindiana.com/teampage/?nameFull=Haden-Deaton&%26year=17

However, when I just type in…
http://grassrootsindiana.com/teampage/?year=17&%26team=1

…it takes me to a 404 page. I put that link toward the bottom of the home page to see if that mattered…no change.

Not up on Wordpress, but did you try removing the last forward slash and throw in the page extension as well?

IE.

http://grassrootsindiana.com/teampage.php?year=17&%26team=1

I did, but thank you for your response.

The last forward slash gets added even if it’s missing, so I just put it in. As for the .php, WordPress treats pages like folders in terms of hierarchy, so it would be /teampage/index.php?year=17…I just tried it again, but I have the result.

It’s really perplexing.

Sponsor our Newsletter | Privacy Policy | Terms of Service