htaccess用户个人资料文件夹

时间:2012-08-27 08:50:10

标签: .htaccess mod-rewrite

在我的网站上有一个用户个人资料文件,在php中。如果你写http://www.youdomain.com/user.php?id=[user id]。它显示用户配置文件的ID。

在htaccess中有没有办法,如果写一个http://www.youdomain.com/users/[user id]它会显示页面http://www.youdomain.com?id=[user id] 。

谢谢。

1 个答案:

答案 0 :(得分:1)

$('.Nav a').each(function(e) {
    var href = e.attr("href");
    if (href === window.location.href) {
        alert(href);
    }
});