0
我需要帮助重写URL与htaccess的,现在我的网址是需要帮助的.htaccess重写
http://site.com/index.php?user=ln12666279n
我想使它像
http://site.com/user/ln12666279n
任何帮助吗?
我需要帮助重写URL与htaccess的,现在我的网址是需要帮助的.htaccess重写
http://site.com/index.php?user=ln12666279n
我想使它像
http://site.com/user/ln12666279n
任何帮助吗?
试试这个:
RewriteCond %{REQUEST_URI} ^/(user)/([\w\d]+)/?$ [NC]
RewriteRule^/index.php?%1=%2
非常感谢你,这完美的作品! – user994461 2012-02-03 12:37:37
的可能重复[的.htaccess重写规则问题(http://stackoverflow.com/questions/7870792/htaccess-rewrite-rule-problems) – geoffspear 2012-02-03 12:29:21