Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne].htaccess i podkatalogi
julek12
post
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
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.
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: 27.12.2025 - 17:45