PHP: Always redirect to the non-www and https version of the current page
<?php if(empty($_SERVER[‘HTTPS’]) || $_SERVER[‘HTTPS’] == “off”){ //check for non secure connections $redirect = ‘https://’ . str_replace(‘www.’, ”,...
Read MorePosted by wp.edmunds | Nov 16, 2018 | Hosting/Servers, PHP, Webmaster |
<?php if(empty($_SERVER[‘HTTPS’]) || $_SERVER[‘HTTPS’] == “off”){ //check for non secure connections $redirect = ‘https://’ . str_replace(‘www.’, ”,...
Read MorePosted by wp.edmunds | Sep 25, 2018 | Hosting/Servers, MySQL - MariaDB |
CREATE TABLE table_backup LIKE my_friend INSERT INTO table_backup (SELECT * FROM table)
Read MorePosted by wp.edmunds | Sep 25, 2018 | Hosting/Servers |
When uploading files over ssh – filezilla returns “Filezilla: Error at input_pushback not null!” Fix: Reduce the number of connections, and change tranfer mode to ascii. Under...
Read MorePosted by wp.edmunds | Sep 13, 2018 | CSS/Design |
@media only screen and (min-width: 300px) and (max-width: 500px) { .myClass { display: none; } } In the example above: apply the rules when the screen width is between 300 and...
Read More