![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 600 Pomógł: 2 Dołączył: 1.09.2002 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
Witam.
Mam poniższy plik .httaccess : Kod RewriteEngine On # przy wywołaniu test.php?parametr=2 # zostanie uruchomiony index.php?a=$1¶metr=2 RewriteRule ^(.*).php$ index.php?d=$1 [QSA] Jak teraz zrobić, żeby adres w stylu test.html nie przekazywał jako index.php?a=test tylko po prostu jako test.php. Próbowałem tak: Kod RewriteRule ^(.*).html$ $1.php [QSA] i RewriteRule ^(.*).html$ $1.php [L, QSA] ale ciagle mi prekazuje jako parametr do index.php Bede wdzięczny za wselkie wypowiedzi. |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 248 Pomógł: 55 Dołączył: 1.06.2010 Skąd: mam to wiedzieć? Ostrzeżenie: (0%) ![]() ![]() |
Mógłbyś dodać jakiś prefix, suffix do reguł. Np:
Kod RewriteEngine On
RewriteRule ^prefix([^/]*)\.html$ /index.php?parametr=$1 [L] Ten post edytował ixpack 2.03.2011, 14:32:02 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 08:18 |