Reply to Re: seeking mod_rewrite solution

Your name:

Reply:


Posted by joelbyrd on 03/02/06 05:14

>The pattern ^/\w+\/?/$ probably makes more sense.

Yes, that is better, thank you.

>I would also modify my_profile.php so it finds the user based on the
>user name instead of doing a redirect to the page with the user id.
>Don't really see a reason to do it in two steps.

I think you might have misunderstood what the my_profile.php page is.
It does not
redirect, it _is_ the user profile page, but based on the user_id as
given in the query
string (which is encoded in the query string, so decoded on the page),
it can get all
the information about the user from the database - it's a simple
database-driven page.

[Back to original 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

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