Force HTTPS instead of HTTP
In order to force using https for entire app or for one/more areas, you’ll have to use .htaccess if you are using apache web server.
The .htaccess contents should be as simple as:
# force https
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R,QSA]
And you can place the .htaccess either in your document root where you want to redirect all the areas to https or you can also place it in the root of a given area, say in /backend or in /customer or in /api area.
Please note that if you are using tracking domains, you should not force using HTTPS globally, but rather do it only for the /backend, /customer and /Api areas otherwise you would need a valid SSL certificate for all your tracking domains.
Related Articles
When using WEB API delivery servers, bounce processing doesn’t work.
If you are using the web api implementation for Amazon SES / Mandrill / Mailgun / etc and you find out that bounce processing doesn’t really work, below are potential reasons: 1. You are redirecting users from http to https. If that’s the case make ...
Nginx server basic configuration for AppMail
Please note that the below configuration is going to use php-fpm for what is worth. /etc/nginx/nginx.conf # For more information on configuration, see: # * Official English Documentation: https://nginx.org/en/docs/ # * Official Russian Documentation: ...
The correct way to add a link using the wysiwyg editor
We’re using CKEditor as our wysiwyg editor throughout the application. When adding a link using CKEditor, the easiest way is to simply select the text you want to set a link onto: then click the link icon from CKEditor’s toolbar: Which will open the ...
General notes for differences between v1 and v2
We now require PHP >= 7.2. 1. Most of the code is now using typed params and return types. Instead of: public function abc($text, $intNum) you’ll see: public function abc(string $text, int $intNum): string This means you have to edit any code that ...
Embed XML(RSS) feeds into your campaign
Starting with AppMail EMA 1.3 you can embed XML(RSS) feeds into you campaigns easily. In the campaign template (or subject line), you will have to add a set of tags that AppMail EMA will recognize and transform into the actual content of the feed. ...