Archive for November 2017

Add SPF record for your email relay server to avoid being counted as a spam

Step 1. Add SPF record to your DNS server Create TXT record type and add the following text without quotes “” @ TXT "v=spf1 a mx include:myrelay.com ~all" Step 2. Check if SPF record is added correctly username@laptop:/home/username# dig myhostname.com TXT   <<>> DiG 9.10.3-P4-Ubuntu <<>> myhostname.com TXT ;; global options: +cmd ;; Got answer: […]

Redirect va htaccess non-www to www and keep http and https protocols

RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTPS}s on(s)|offs() RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [NE,L,R]