Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]problem z mod_rewrite
BuncolPL
post
Post #1





Grupa: Zarejestrowani
Postów: 75
Pomógł: 0
Dołączył: 19.12.2008
Skąd: Poland

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


Cześć,

Mam problem z mod_rewrite. W .htaccess mam coś takiego:

  1. RewriteRule ^([0-9a-zA-Z-s]*).php$ index.php?article=$1&%{QUERY_STRING}
  2. RewriteRule ^tag-([0-9a-zA-Z-s]*),([0-9]*).html$ index.php?tag=$2&%{QUERY_STRING}
  3. RewriteRule ^tagi.html$ index.php?tagi


Problem pojawia się tutaj: RewriteRule ^([0-9a-zA-Z-s]*).php$ index.php?article=$1&%{QUERY_STRING}

Artykuł wyświetla mi się poprawnie, ale gdy wpisuje np. tagi.html to wyświetla mi też dane z index.php?article=

Chcę aby artykuły na stronie były w postaci artykul.php

Z góry dzięki za pomoc.
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: 24.08.2025 - 19:58