I'm trying to create a simple site for local test, but I need to show on URL the following:
?id=1
How can I do it?
You can do this by hyperlink, form submit, manually typing it into the URL bar and many other methods. Use a hyperlink:
<a href="www.example.com?id=1">ID1</a>
Im not too sure what you are asking, but if you are looking to add an id variable to the URL you need to add it to the URL when you redirect
EX. From link
<a href="127.0.0.1/mysite/index.php?userid=1">Link</a>
You can do this by hyperlink, form submit, manually typing it into the URL bar and many other methods. Use a hyperlink: