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]
# 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]
i
RewriteRule ^(.*).html$ $1.php [L, QSA]
ale ciagle mi prekazuje jako parametr do index.php
Bede wdzięczny za wselkie wypowiedzi.