![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 8 Pomógł: 0 Dołączył: 5.11.2008 Ostrzeżenie: (0%) ![]() ![]() |
witam
Nie wiem czy dobry dział wybrałem (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) Mam problem z modrewrite tzn chce mieć tak że zamiast strona.pl/profile.php?username=Cr3V_86 powinno być strona.pl/Cr3V_86 Od strony php wszystko działa mam tak jak chce czyli : strona.pl/Cr3V_86 tyle że mam problem z htaccess Mianowicie wstawiłem tam : RewriteRule ^profile.php?username=([1-9][1-9][a-z][A-Z])$ profile.php?username=$1 jednak zamiast zamieniać adres to dodaje mi nazwe pliku php do adresu ww : strona.pl/profile.php?username= dodałem : RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php aby przy błędzie wracało usera do strony głównej tak wygląda cały kod jaki wstawiłem w htaccess Options FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php RewriteRule ^profile.php?username=([1-9][1-9][a-z][A-Z])$ profile.php?username=$1 nie mam pojęcia co dalej z tym zrobić , słaby jestem w phhp (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) niby coś znam ale jednak prosze o pomoc łopatologiczną (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.09.2025 - 17:51 |