![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 385 Pomógł: 48 Dołączył: 23.05.2007 Ostrzeżenie: (0%) ![]() ![]() |
Czy można napisać jakiś kontroler który by w pliku .htaccess dodawał automatycznie reguły dla nowych podstron, a nie trzeba by było ręcznie każdej nowej strony osobno dodawać?
Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 385 Pomógł: 48 Dołączył: 23.05.2007 Ostrzeżenie: (0%) ![]() ![]() |
ok ale jak funkcje napisać typu takiego co podał bim2 w swoim linku?
mój .htaccess obecnie wygląda tak: Kod RewriteEngine On RewriteRule ^index/$ index.php RewriteRule ^oferta/$ index.php?page=oferta RewriteRule ^kontakt/$ index.php?page=kontakt RewriteRule ^wiadomosci/$ index.php?page=wiadomosci RewriteRule ^mail/$ index.php?page=mail RewriteRule ^foto/$ index.php?page=galeria RewriteRule ^foto/[0-9]/$ index.php?page=galeria&id=$1 RewriteRule ^mail,send/$ index.php?page=mail_send i switch
i nagłówiki
Ten post edytował Lejto 7.05.2009, 13:43:29 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 13.10.2025 - 13:40 |