Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 97 Pomógł: 5 Dołączył: 6.02.2009 Skąd: Gorzów Wlkp. Ostrzeżenie: (0%)
|
Witam,
jak zrobić aby .htaccess działo TYLKO w katalogu nadrzędnym, czyli tu: public_html działa, ale tu: public_html/forum już nie działa chyba, że w /forum utworze nowy plik .htaccess |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Moderatorzy Postów: 15 467 Pomógł: 1451 Dołączył: 25.04.2005 Skąd: Szczebrzeszyn/Rzeszów |
To trzeba było tak od razu.
Dokumentacja: Cytat The configuration directives found in a .htaccess file are applied to the directory in which the .htaccess file is found, and to all subdirectories thereof. However, it is important to also remember that there may have been .htaccess files in directories higher up. Directives are applied in the order that they are found. Therefore, a .htaccess file in a particular directory may override directives found in .htaccess files found higher up in the directory tree. And those, in turn, may have overridden directives found yet higher up, or in the main server configuration file itself. Jedyne wyjście, to utworzenie w podkatalogu pliku .htaccess, który anuluje ustawienia z katalogu nadrzędnego. Innej możliwości, niestety, nie ma, z tego co wiem i znalazłem. |
|
|
|
julek12 [inne].htaccess i podkatalogi 25.09.2009, 14:54:38
erix Spróbuj którychś z tych kombinacji:
[APACHE] pobie... 25.09.2009, 16:21:01
julek12 Gdyby chodziło o mod_rewrite to sam bym zrobił mi ... 25.09.2009, 17:45:03
julek12 No ok, ale właśnie jak to zrobić? Zrobiłem tak:
Ko... 25.09.2009, 18:22:30
erix Inaczej, to znaczy? Co chcesz osiągnąć? Powrócić d... 25.09.2009, 18:24:22
bartg Proponumje w katalogu podrzednym utworzyc plik hta... 25.09.2009, 18:26:41
julek12 Chyba niestety nie działa :| przynajmniej u mnie.
... 26.09.2009, 06:27:22
bartg NIe nie, daj tylko
ExpiresActive On
Wtedy modul ... 26.09.2009, 08:19:47
julek12 Ale to właśnie u mnie nie działa :| 26.09.2009, 09:56:25
erix CytatWtedy modul sie zaladuje z domyslnymi wartosc... 26.09.2009, 11:39:54 ![]() ![]() |
|
Aktualny czas: 27.12.2025 - 17:45 |