Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP].htaccess
webmaestro
post
Post #1





Grupa: Zarejestrowani
Postów: 48
Pomógł: 0
Dołączył: 25.12.2009

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


  1. RewriteEngine On
  2. DirectoryIndex index.php
  3. RewriteRule ^register.html$ index.php?page=register [L]
  4. RewriteRule ^login.html$ index.php?page=login [L]
  5. RewriteRule ^index.html$ index.php?page=index [L]
  6. RewriteRule ^kontakt-do-nas.html$ index.php?page=kontakt-do-nas [L]

Jak taki kod przerobic aby register, login index, kontakt-do-nas były w jednej regułce ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Potter125
post
Post #2





Grupa: Zarejestrowani
Postów: 35
Pomógł: 7
Dołączył: 18.02.2007

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


Kod
RewriteRule ^(.*).html$ index.php?page=$1 [L]


Ten post edytował Potter125 17.09.2011, 16:19:42
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: 7.10.2025 - 03:10