Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne] .htaccess problem
GameMaker
post
Post #1





Grupa: Zarejestrowani
Postów: 149
Pomógł: 2
Dołączył: 31.01.2010
Skąd: Konstancin-Jeziorna

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


Kod
Options FollowSymLinks
RewriteEngine On
RewriteRule ^([0-9]+)/([^/]+)\.html$ index.php?a=$2&b=$1 [L]
RewriteRule ^([^/]+)\.html$ index.php?a=$1 [L]
RewriteRule ^([0-9]+)$ index.php?b=$1 [L]
RewriteRule ^([0-9]+(/))$ index.php?b=$1 [L]



Odnośnie mam problem co do regułek :

Kod
RewriteRule ^([0-9]+)/([^/]+)\.html$ index.php?a=$2&b=$1 [L]


Gdy podam w pasku adresu jakis "/" to wywala bład , chcę to zniwelować , aby było to czytane jako zmienna , a nie część scieżki.

przyklad:

Kod
http://ooo.pl/22/hej/hej.html
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: 27.09.2025 - 15:31