Hello all,
Is it possible to re-write (Apache Mod-Rewrite) a URL from this:
http://www.example.com/view.php?t=h5k6
to this http://www.example.com/h5k6
The reason for this re-write is that the URL needs to be very short (a bit like a tiny URL service).
Would that new URL still hit my view.php page? Would it be able to still make use of the super global array GET ($_GET
) to access the variable t
? I still want my index.php page to map to this http://www.example.com.
I would also appreciate comments on effects this may have as I am a bit of a noob. :)
Thanks all