jeśli ktoś jeszcze nie rozumie to linki do profilów lecą tak:
www.nazwastrony.pl/profile.php?username=lisekpl jest zamieniane na www.nazwastrony.pl/lisekpl
ale po wpisaniu
www.nazwastrony.pl/login.php przenosi na stronę logowania zamiast na profil
logowanie ma się odbywać tylko przez www.nazwastrony.pl/accounts/login!!
Wszystkie pliki znajdują się w public_html. Proszę pomóżcie
tutaj moje htaccess (nie dorobiłem kropki w profilach bo nie wiem jak to zrobić):
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^hashtag/([A-Za-z0-9_]+)$ hashtag.php?hashtag=$1 RewriteRule ^([A-Za-z0-9_]+)$ profile.php?username=$1 RewriteRule ^accounts/logout logout.php RewriteRule ^accounts/login login.php RewriteRule ^accounts/index index.php RewriteRule ^accounts/register register.php