![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 160 Pomógł: 4 Dołączył: 22.04.2006 Skąd: Kraków Ostrzeżenie: (0%) ![]() ![]() |
Podczas pisania regułek rewrite napotkałem na problem wyciągnięcia, z adresu http://example.com/a/b/?c=ex, ?c=text.
Dokładniej chodzi mi tylko o wyciągnięcie to co jest po c=, czyli text. RewriteRule ^(a)/((IMG:style_emoticons/default/cool.gif) /?(.*)$ static.php?params=$1/$2/$3 [L] W żaden sposób nie mogę wykombinować żeby coś było w $3. Zauważyłem ze ? robi problem. Jak to ominąć? Próbowałem dawać \ przed ? ale nic nie pomogło (IMG:style_emoticons/default/sad.gif) Problem rozwiązany. RewriteRule nie działa na query string. Do tego potrzebne jest RewriteCond. RewriteCond %{QUERY_STRING} c=([^&;]*) RewriteRule ^(a)/((IMG:style_emoticons/default/cool.gif) /(.*)$ static.php?params=$1/$2/%1 [L] Ten post edytował yaro 22.11.2009, 12:43:18 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 12:06 |