2014-05-21 50 views
0

目前我的网站做到这一点,当你去给谁的个人资料:重写URL到短

的index.php A =轮廓& U = berdyev

我想使它看起来像? :

website.com/berdyev

有什么建议吗?

谢谢。

+0

基地一切索引页面上,通过案例/数据库中提取,等。 –

回答

1

将此放在你的根的.htaccess:

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^([^/]+)/?$ /index.php?a=profile&u=$1 [L,QSA]