get or post arguments causing `page not found` error in wordpress cutom template

I created custom template using this code,

<?php /* Template Name: npg */ 
  echo "hello";
?>

And assigned this template to new page, When i open that page i can see hello printed there.

Read More

Issue is, when i pass variable in get like this

http://lh/folder/pagename?s=123

Getting page not found error. But if i use like like this

http://lh/folder/pagename

I can see hello.

What is the issue?

Related posts

1 comment

  1. What happens if you put the “?” character just after the pagename, without the “/” character ? Like this:

    http://lh/folder/pagename?s=123
    

Comments are closed.