|
Posted by Erwin Moller on 01/29/07 14:36
just_me wrote:
> Hello,
>
> I'd like to ask if anyone knows the format /category/13/ where
> probably 13 is the ID if it's actually a
> directory/file and a script automatically created it when someone
> updated his site or they just use
> a regex method to extract the number (which means /13/ is virtual), in
> our case '13' and then try "select 'bla bla' from table where id='13'
> "
> which is the same as "$id = $_GET['id'];" with the second type of
> formating.
> Can I found this, if it is already scripted instead of writing it on
> my own?
> Any links? Is it hosted in any framework?
>
> thanks a lot
Hi,
The format /category/13/ CAN be the result of url-rewriting to make it
suitable for apache REWRITE ENGINE (mod_rewrite).
You will most probably find the rewrite rules in your apache config in the
virtual host that defines this website.
And yes, it uses a regular expression.
What is your question/problem excactly?
Try Google: mod_rewrite examples
for a wealth of examples to get you going.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|