Redlight Media

Dokumentation / Kustom Shipping - Edit .htaccess

Kustom Shipping - Edit .htaccess

Edit .htaccess file


If you are using Apache

After installing the plugin you need to edit your .htaccess file. This is done at your hosting company.

  1. Via FTP edit the .htaccess
  2. Before the# BEGIN WordPress add the following:
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
    	
  3. The end result should now look like this:
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
    # BEGIN WordPress
    	
  4. Save the file.

If you are using Nginx

After installing the plugin you need to edit your config file. This is done at your hosting company.

  1. Edit the NGINX Config file and add the following:
    add_header Access-Control-Allow-Headers "Authorization";
    	
  2. Save the file.

Alla guider och dokumentation