Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z htaccess
MeGusta
post
Post #1





Grupa: Zarejestrowani
Postów: 155
Pomógł: 0
Dołączył: 6.07.2015

Ostrzeżenie: (10%)
X----


Witam, mam problem z htaccess, napisałem dwie reguły:

  1. RewriteRule ^forum/section/(.*)$ index.php?page=forum&section=$1 [L,NC]
  2. RewriteRule ^forum/section/([0-9]+)/([0-9]+)$ index.php?page=forum&section=$1&subject=$2 [L,NC]


Problem w tym, że aby działał mi url /forum/section/1/1 musze usunąc:
  1. RewriteRule ^forum/section/(.*)$ index.php?page=forum&section=$1 [L,NC]


Jak to można naprawić?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
trueblue
post
Post #2





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

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


Zamień kolejnością.
Zasada: od szczegółu, do ogółu.


--------------------
Go to the top of the page
+Quote Post

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 Aktualny czas: 20.08.2025 - 05:24