filmov
tv
How to Set MIME Types for Specific File Extensions via .Htaccess in Website | PHP | HTML | WordPress

Показать описание
In this website tutorial you will see how to set mime type of specific file extension using htaccess file in website.
If you want to set specific MIME types for certain file extensions on your website, you can use following .htaccess code.
AddType text/html .html
AddType application/json .json
You can Replace .html and .json with file extensions you want to set MIME types for. This will ensure that correct MIME type is sent in HTTP headers for those file types.
#mime #file #post #extension #website #wordpress #php #html #webtaskwithhassan #hassangilani
If you want to set specific MIME types for certain file extensions on your website, you can use following .htaccess code.
AddType text/html .html
AddType application/json .json
You can Replace .html and .json with file extensions you want to set MIME types for. This will ensure that correct MIME type is sent in HTTP headers for those file types.
#mime #file #post #extension #website #wordpress #php #html #webtaskwithhassan #hassangilani