Mod -rewrite terminology works differently. Requests will be submitted as follows http://www.example.com/h5k6 and will be rewritten internally http://www.example.com/view.php?t=h5k6 internally. This way, your PHP scripts can respond to requests as if they were sent as GET parameters, but users see URLs in a much more friendly way.
Therefore, you do not need to change the PHP scripts, and you can still access the t parameter from the GET array.
In your case, the rule will look like this:
RewriteRule ^/(.*) /view.php?t=$1
You might want to clarify what you accept (and not just the catch-all .* Expression). In addition, you may want exceptions to this rule if you have other pages in this directory other than view.php.
source share