![]() |
![]() ![]() |
![]() |
--newbie-- |
![]()
Post
#1
|
Goście ![]() |
Witam,
zdefiniowałem prostą regułę w pliku htaccess RewriteEngine On RewriteRule /(testy)/([0-9]+) /testy.php?news=$1 po wywołaniu strony http://localhost/testy.php?news=3 efekt żaden. Czy robię coś nie tak? np. access deny funkcjonuje ok, więc apache musi być skonfigurowany właściwie. Pozdrawiam nb |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 124 Pomógł: 16 Dołączył: 22.02.2007 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
wpisz link http://localhost/testy/news-3 bo robisz przyjazneadresy
|
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 853 Pomógł: 25 Dołączył: 27.08.2003 Skąd: Katowice Ostrzeżenie: (0%) ![]() ![]() |
regula powinna wygladac tak
Kod RewriteRule /testy/([0-9]+) /testy.php?news=$1 albo tak Kod RewriteRule /(testy)/([0-9]+) /testy.php?news=$2 wtedy po wpisaniu np. /testy/4 bedzie uruchamial /testy.php?news=4 ale jak nie dziala http://localhost/testy.php?news=3 to nic z tego. innymi slowy, tu wyglada, ze problem tkwi w samym skrypcie testy.php, a nie w konfiguracji apache'a. -------------------- "If debugging is the process of removing bugs, then programming must be the process of putting them in..."
sobstel.org |
|
|
--newbie-- |
![]()
Post
#4
|
Goście ![]() |
Problem tkwił w mojej głowie. Dziękuję za pomoc.
Pozdrawiam nb |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 08:42 |