как сделать чобы профил юзера не так сайт/index.php?tab1=timeline&id=baha а так сайт/user name?
ОБСУЖДЕНИЕ
.htaccess
этот гвно год везде index.php?tab1= home/exit/ user name/group
mod_rewrite
RewriteEngine On
RewriteRule ^([a-zA-Z0-9]*)/?$ index.php?tab1=timeline&id=$1 [L,QSA]
RewriteRule ^([a-zA-Z0-9]*)/?$ index.php?tab1=timeline&id=$1 [L,QSA]
RewriteEngine on
RewriteRule ^user_$name?$ index.php?tab1=timeline&id=$name
примерно так
RewriteRule ^user_$name?$ index.php?tab1=timeline&id=$name
примерно так
толка нету не работет главный страница сайта не открывает когда ставил ваши коды
у меня на .htaccess дохойа мусоров из за этого?
вот .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ajax.php$ ajax.php [NC,QSA]
RewriteRule ^@([A-Za-z0-9_]+)(\/|)$ index.php?tab1=timeline&id=$1 [NC,QSA]
RewriteRule ^@([A-Za-z0-9_]+)/([^\/]+)(\/|)$ index.php?tab1=timeline&tab2=$2&id=$1 [NC,QSA]
RewriteRule ^@([A-Za-z0-9_]+)/([^\/]+)/([^\/]+)(\/|)$ index.php?tab1=timeline&tab2=$2&tab3=$3&id=$1 [NC,QSA]
RewriteRule ^@([A-Za-z0-9_]+)/([^\/]+)/([^\/]+)/([^\/]+)(\/|)$ index.php?tab1=timeline&tab2=$2&tab3=$3&recipient_id=$4&id=$1 [NC,QSA]
RewriteRule ^forgot-password(\/|)$ index.php?tab1=welcome&tab2=forgot_password [NC,QSA]
RewriteRule ^password-reset/([^\/]+)(\/|)$ index.php?tab1=welcome&tab2=password_reset&id=$1 [NC,QSA]
RewriteRule ^messages/([^\/]+)(\/|)$ index.php?tab1=messages&recipient_id=$1 [NC,QSA]
RewriteRule ^story/([^\/]+)(\/|)$ index.php?tab1=story&id=$1 [NC,QSA]
RewriteRule ^search/([^\/]+)(\/|)$ index.php?tab1=search&query=$1 [NC,QSA]
RewriteRule ^hashtag/([^\/]+)(\/|)$ index.php?tab1=hashtag&query=$1 [NC,QSA]
RewriteRule ^terms/([^\/]+)(\/|)$ index.php?tab1=terms&tab2=$1 [NC,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\/]+)/([^\/]+)/([^\/]+)(\/|)$ index.php?tab1=$1&tab2=$2&tab3=$3 [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\/]+)/([^\/]+)(\/|)$ index.php?tab1=$1&tab2=$2 [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\/]+)(\/|)$ index.php?tab1=$1 [QSA]