when edit question on stackoverflow.com, redirected url this:
but usually, should
or
how
i know stackoverflow.com not created using php, wondering how achieve in php?
with apache , php, might perform 1 of examples using mod_rewrite rule in apache config follows:
rewriteengine on rewriterule ^/posts/(\d+)/edit /posts/edit.php?id=$1
this looks urls of "clean" form, , rewrites them internally redirected particular php script.
quite rules used route requests common controller script, might instantiate "postscontroller" class , ask handle edit request. common feature of php application frameworks.