Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Access][PHP]Mod Rewrite 2 zmienne
wasik89
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 10.09.2008

Ostrzeżenie: (0%)
-----


Hej.

Chcialem stworzyc sobie linki bardziej user friendly i natknalem sie na problem przy 2 zmiennych ...
Mam takie reguły:

RewriteRule ^([0-9])/ /index.php?intro=$2 [L]
RewriteRule ^([0-9])/(.*)/ /index.php?intro=$2&reklama=$banner [L]
lub zamiennie :
RewriteRule ^([0-9])(/([a-z]+))*/ /index.php?intro=$2&reklama=$banner [L]

dla ponizszego zapisu tez nie dziala:

RewriteRule ^([0-9]+)/$ /index.php?intro=$2 [NC,L]
RewriteRule ^2/([a-z]*)/$ /index.php?intro=2&reklama=$banner [NC,L]

o ile strona sie wczytuje przy linku /2/ to /2/banner/ juz nie idzie ... (ale bledu ze strona nie istnieje nie wywala)
w php biore to z GET'a nastepujaco :
  1. if(isset($_GET['reklama']) && $_GET['reklama'] == 'banner')
  2. {
  3. }


Co moze nie buczec ? Prosze o pomoc i dziekuje.

Ten post edytował wasik89 7.07.2010, 11:25:52
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.12.2025 - 00:27