![]() |
![]() |
![]()
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. -------------------- ![]() ZCE :: Pisząc PW załączaj LINK DO TEMATU i TYLKO w sprawach moderacji :: jakiś błąd - a TREŚĆ BŁĘDU? :: nie ponaglaj z odpowiedzią via PW! |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 20.06.2025 - 07:51 |