You are here: Re: a question about URL formating /category/13/ vs /category.php?id=13 « PHP Programming Language « IT news, forums, messages
Re: a question about URL formating /category/13/ vs /category.php?id=13

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация