![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 179 Pomógł: 2 Dołączył: 17.11.2005 Ostrzeżenie: (0%) ![]() ![]() |
witam. normalnie uwzględniając zmienne w adresie wyglada to tak cos.php?id=20&site=kom na tomoast zastanawia mnie jak zrobic format adresu na cos/id/20/site/kom lub cos podobnego do tego(chodzi mi o ukośniki zamiast np znaku = ).
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 476 Pomógł: 1 Dołączył: 5.11.2005 Skąd: Bieruń city Ostrzeżenie: (0%) ![]() ![]() |
.htacces:
RewriteEngine On RewriteRule ^index.html$ index.php RewriteRule ^index-([^\.]*).html$ index.php?p1=$1 RewriteRule ^index-([^-]*)-([^\.]*).html$ index.php?p1=$1&p2=$2 RewriteRule ^index-([^-]*)-([^-]*)-([^\.]*).html$ index.php?p1=$1&p2=$2&p2=$3 teraz mamy adresy: index.html - index.php index-01.html - index.php?p1=01 index-01-02.html - index.php?p1=01&p2=02 index-01-02-03.html - index.php?p1=01&p2=02&p3=03 ładne url'e i nie ma problemów z linkami Ten post edytował dtb 19.11.2005, 12:42:20 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 9.10.2025 - 15:38 |