Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne].htaccess i podkatalogi
julek12
post 25.09.2009, 14:54:38
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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
erix
post 25.09.2009, 18:02:34
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!
Go to the top of the page
+Quote Post

Posty w temacie


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 Wersja Lo-Fi Aktualny czas: 20.06.2025 - 07:51