Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mod_rewrite] polskie znaki
Lejto
post
Post #1





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


Jak przekazać w mod_rewrite link z polskimi znakami zwykłe ([a-zA-Z]+) nie starcza, jak to rozwiązać?

Pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Lejto
post
Post #2





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


działało, ale potem coś przestało
mój cały kod
[APACHE] pobierz, plaintext
  1. RewriteEngine On
  2. RewriteRule ^index/$ index.php
  3. RewriteRule ^film/([^-]*),([0-9]+)$ index.php?page=film&nazwa=$1&id=$2
  4. RewriteRule ^([a-zA-Z]+)$ index.php?page=$1 [L]
  5. RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+),([0-9]+)$ index.php?page=$1&p=$2&p2=$3 [L]
  6. RewriteRule ^([a-zA-Z]+)/([0-9]+)$ index.php?page=$1&id=$2 [L]
  7. RewriteRule ^tag/([^-]*)$ index.php?page=tags&tag=$1 [L]
  8. RewriteRule ^categories/([a-zA-Z]+),([0-9]+)$ index.php?page=categories&cat=$2 [L]
  9. RewriteRule ^categories/([a-zA-Z]+)([-\ ]+)([a-zA-Z]+),([0-9]+)$ index.php?page=categories&cat=$2 [L]
  10. RewriteRule ^konto\/([a-zA-Z]+)$ index.php?page=konto&k=$1 [L]
[APACHE] pobierz, plaintext





Go to the top of the page
+Quote Post

Posty w temacie


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: 16.10.2025 - 07:12