My actual url looks like this:
http://mydomain.com/example.php?id=value1&name=value2
Ideal for me would be something like:
http://mydomain.com/example/value2
I dont want to show the items id. I googled for hours but didn`t find anything usefull. I want to pass the id along but dont want to show it in URL. Is something like this possible? Could i maybe rewrite the url somehow after client loaded the page?
If i must send the id then how could i rewrite the name value, accodring to id? So if i type something not related to item with specified id in the name field, on response i sitll get the actual value for name associated to id. So this is what i mean:
- the actual ulr is:
http://mydomain.com/example/123
- what i type:
http://mydomain.com/randomtext/123
- and i still get the response:
http://mydomain.com/example/123
Just like here: http://www.theatlantic.com/magazine/archive/1939/03/what-makes-an-american/309021/
If you change what-makes-an-american
to any random text, you still get to the same page.
Do they use redirect? Isn`t that harmfull to loadtime?