Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Apache] RewriteRule
jol.us_
post
Post #1





Grupa: Zarejestrowani
Postów: 132
Pomógł: 0
Dołączył: 10.12.2003
Skąd: Kraków

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


Pomóżcie mi z regułą RewriteRule

/url1?zmienna=1 -> index.php?url=url1&zmienna=1

Probowałem:
RewriteRule ^([a-z1-9_-]+)\?(.*)$ /index.php?url=$1&$2
ale nie dziala

Ten post edytował jol.us_ 20.02.2016, 23:01:38
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
goartur
post
Post #2





Grupa: Zarejestrowani
Postów: 233
Pomógł: 27
Dołączył: 19.10.2014

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


  1. RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/?$ index.php?url=$1&zmienna=$2 [QSA]
  2.  
Go to the top of the page
+Quote Post
jol.us_
post
Post #3





Grupa: Zarejestrowani
Postów: 132
Pomógł: 0
Dołączył: 10.12.2003
Skąd: Kraków

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


Twoja reguła nie działa. Ale wskazałeś kierunek (IMG:style_emoticons/default/wink.gif)

To spełnia moje oczekiwania
  1. RewriteRule ^([a-zA-Z0-9_-]+)/?$ /index.php?url=$1$2 [QSA]


Dziękuję

Ten post edytował jol.us_ 20.02.2016, 23:23:51
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: 23.08.2025 - 11:15