Page 1 of 1

How to do url rewriting?

Posted: Fri Jul 02, 2004 11:39 am
by h@mm3r
Is there a simple way (without modifing any server or php config files, but maybe using .htaccess?) make urls like http://www.myserv.com/?page=car&id=10 to http://www.myserv.com/page/car/id/10 ?

I'm running Apache server on Windows with PHP4.

Posted: Fri Jul 02, 2004 11:50 am
by pickle
It has nothing to do with PHP actually, but rather modrewrite in an .htaccess file. Do a Google search: [google]mod rewrite[/google]

Posted: Fri Jul 02, 2004 12:17 pm
by h@mm3r
Thanks! :P That helped a lot ;)
Although, I've heard that it can be done in PHP without the mod_rewrite...