D
D
DoRcK2014-05-02 19:41:06
PHP
DoRcK, 2014-05-02 19:41:06

How to implement file type substitution in .htaccess?

Hello! I heard that you can associate any type of file on the server with another, for example, make .filetype work the same way as html. To do this, you need to specify the mime type in .htaccess, but with such an attempt to "replace" .php with my file format, I did not achieve anything. Tell me how to make it clear to the server that .myfiletype is the same as .php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
egor_nullptr, 2014-05-02
@egor_nullptr

AddType application/x-httpd-php .myfiletype

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question