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