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 ^(.*)$$1 [R,L]
Be sure to replace 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/ # 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 You should be able to set the charset in .htaccess. This should work: # AddCharset UTF-8 .xml