我可以在PHP中使用像twitter或myspace这样的直接URL吗?

问题描述:

我可以做那些Twitter和其他许多网站在网址显示用户页面时所做的事情。

Can I do that thing that twitter and many other sites do where a url shows a users page.

www.mysite.com/the_user_name

www.mysite.com/the_user_name

在php中......或者如何做到这一点?

In php... or how does one do it?

在.htaccess中使用 mod_rewrite模块

Look into how to use the mod_rewrite module in .htaccess.

以下是一些ALA的优点:

Here's some ALA goodness:


  1. 如何成功使用网址

  2. URLS!网址了! URLS!

  1. How to Succeed With URLs
  2. URLS! URLS! URLS!