Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mod_rewrite][PHP] mod_rewrite i nieprawidłowe wartości $zmiennych
-foxy-
post
Post #1





Goście







  1. Options FollowSymLinks
  2. RewriteEngine On
  3.  
  4. RewriteRule ^([a-zA-Z0-9\-\_\.]+)$ read.php?desc=$1 [L]
  5. RewriteRule ^([a-zA-Z0-9\-\_\.]+)/([a-zA-Z0-9]+)$ read.php?desc=$1&sub=$2 [L]


Po przejściu przez .htaccess $_GET['desc'] ma wartość 'read.php' (IMG:style_emoticons/default/ohmy.gif) , a $_GET['sub'] zawsze jest puste (IMG:style_emoticons/default/ohmy.gif) . Co jest nie tak?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
AdIoS_Neo
post
Post #2





Grupa: Zarejestrowani
Postów: 159
Pomógł: 43
Dołączył: 8.03.2009

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


Kod
Options FollowSymLinks
RewriteEngine On
RewriteRule ^([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/?$ read.php?title=$1&sub=$2 [L]
RewriteRule ^([a-zA-Z0-9-_]+)/?$ read.php?title=$1 [L]

sprawdź to
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: 25.12.2025 - 15:32