我能像Twitter和许多其他网站一样展示用户页面的URL吗?
www.mysite.com/the_user_name
在PHP中...或者怎么做?
了解如何在 .htaccess 中使用 mod_rewrite 模块,请参考:.htaccess 中的 mod_rewrite 模块。
以下是一些 ALA 精选:
RewriteEngine On
RewriteRule ^(.+) /index.php?user=$1
在谷歌上搜索.htaccess和RewriteEngine,以更好地了解创建.htaccess文件的过程。