Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mod_rewrite] Działa i nie działa..., Historia wybiurczego działania mod_rewrite
Shendu
post 11.12.2006, 21:35:14
Post #1





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 31.07.2006

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


Witam wszystkich.

Mam mały problem z modem rewrite.

Zaczne od wklejenia zawartości pliku .htaccess

taki jaki chciałbym żeby był:
Kod
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule wpis-b([0-9]*).html /?b=$1 [L]
RewriteRule archiwum/([0-9]*-[0-9]*) /?id=wyswietl_arch&arch=$1 [L]    <-ta deklaracja!!!!!!!!!!!


przykładowy link:
www.sse.net/archiwum/2006-11

taki jaki działa:
Kod
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule wpis-b([0-9]*).html /?b=$1 [L]
RewriteRule archiwum_([0-9]*-[0-9]*) /?id=wyswietl_arch&arch=$1 [L]    <-ta deklaracja!!!!!!!!!!!


przykładowy link:
www.sse.net/archiwum_2006-11


I już przechodze do sedna sprawy. Czemu mod działa z "_" a nie chce działać z "/".
Dokładnie chodzi o to ze strona funkcjoinuje w 100% sprawnie dla "_" a dla znaku "/" wywala mi sie i pokazuje błąd:
Kod
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/users/shendu/public_html/sse/archiwum_funkcje.php on line 52

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/users/shendu/public_html/sse/archiwum_funkcje.php on line 55

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/users/shendu/public_html/sse/archiwum_funkcje.php on line 66

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/users/shendu/public_html/sse/archiwum_funkcje.php on line 66

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/users/shendu/public_html/sse/archiwum_funkcje.php on line 66

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/users/shendu/public_html/sse/archiwum_funkcje.php on line 66

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/users/shendu/public_html/sse/archiwum_funkcje.php on line 66


za pomoc z góry dziękuje.

Ten post edytował Shendu 11.12.2006, 21:36:24
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 17:22