我目前在测试网站设置上有个人资料,可以这种格式查看:
example.com/profile.php?u=username
我想用这种格式:
example.com/profile/username
我如何将usernamephp视为变量,而不是文件?
username
php apache .htaccess mod-rewrite
.htaccess ×1
apache ×1
mod-rewrite ×1
php ×1