![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 109 Pomógł: 0 Dołączył: 23.09.2003 Ostrzeżenie: (0%) ![]() ![]() |
Witam.
mam w htaccess taką regułe: RewriteRule ^(kategoriasort)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*).html index.php?AK=kategoria&p1=$2&p2=$3&p3=$4&p4=$5&p5=$6&start=$7&pg=$8&limit_st=$9&wid=$10 i działa mi to ale tylko do 9 zmiennej bo juz dziesiątą widzi jako $1 i 0 jak to moge poprawić?? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 139 Pomógł: 10 Dołączył: 6.07.2007 Skąd: opole Ostrzeżenie: (0%) ![]() ![]() |
mod_rewrite obsługuje tylko referencje od 0-9 co jest zreszta opisane w dokumentacji
Kod Back-references are identifiers of the form $N (N=0..9), which will be replaced by the contents of the Nth group of the matched Pattern. http://httpd.apache.org/docs/2.0/mod/mod_r...tml#rewriterule jeżeli potrzebujesz więcej zmiennych musisz napisać własny routing w PHP |
|
|
![]() ![]() |
![]() |
Aktualny czas: 9.10.2025 - 00:03 |