Trying to set content type

[ad_1]

Hi,

I’m trying to implement a json config into /.well-known but I can’t seem to get WordPress to set the content type at all (I need to set it to Application/json.

Things I’ve tried:
1. Setting up a .htaccess file in the .well-known folder:

<Files “com.apple.remotemanagement”>
ForceType application/json
</Files>

Also this in the root htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^\.well-known/com\.apple\.remotemanagement$ – [T=application/json] RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] </IfModule>

Neither have worked sadly. I’m hoping someone can suggest something else

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer