Force SSL in .htaccess file

If you have existing code in your .htaccess, add this above where there are already rules with a similar starting prefix.

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Be sure to replace www.yourdomain.com with your actual domain name.

[…]

Custom error documents in Plesk 12

To add custom error documents in plesk 12, you will need to edit/add an .htaccess file # cd /var/www/vhosts/domain.com/httpdocs/ # mkdir error_pages # nano .htaccess ErrorDocument 404 /error_pages/404.php #cd error_pages # nano 404.php Not Found Save the file and then test with a bogus URL

UTF-8, but your server is reporting US-ASCII

I get this warning message( Your feed appears to be encoded as “UTF-8”, but your server is reporting “US-ASCII” ) when I try to validate my xml under http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.domain.com%2Frss.xml You should be able to set the charset in .htaccess. This should work: # AddCharset UTF-8 .xml