Change URL Address make short in PHP

Iwan picture Iwan · Dec 11, 2009 · Viewed 25.7k times · Source

I have Url as:

localhost/ab/directory.php?id=200

id=200 is jenny id member

how to change it to

localhost/ab/jenny

is possible?

Thanks

Answer

Sampson picture Sampson · Dec 11, 2009

You'll want to use mod_rewrite, a module available in apache. This will be managed by an .htaccess file within your web directory. AddedBytes has a nice tutorial for beginners on url-rewriting.

See: http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/