Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: DefaultType application/x-httpd-php
Forum PHP.pl > Forum > Serwery WWW > Apache
acztery
jak zrobić coś takiego ze wszystkie pliki bez rozszerzenia będa traktowanie tak jak by mialy końcóke php i były uruchumione..

chce ukryc rozszerzenie plikow na stronie www ...


w ustawieniach serwera httpd bylo by DefaultType application/x-httpd-php

a w htaccess questionmark.gif? strone mam w katalogu np page

<Files page>
ForceType application/x-httpd-php
</Files>
Fipaj
Cytat("Dokumentacja Apache")
DefaultType directive
Syntax: DefaultType MIME-type
Default: DefaultType text/plain
Context: server config, virtual host, directory, .htaccess (! - dop. Fipaj ;])
Override: FileInfo
Status: core

There will be times when the server is asked to provide a document whose type cannot be determined by its MIME types mappings.

The server must inform the client of the content-type of the document, so in the event of an unknown type it uses the DefaultType. For example:

    DefaultType image/gif

would be appropriate for a directory which contained many gif images with filenames missing the .gif extension.

See also: AddType and TypesConfig.


Można tak samo w .htacces.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.