Setting up a domain

cd /etc/nginx/conf.d/vhosts sudo nano X.com.conf ADD: return 301 https://www.X.X$request_uri; (save) I.e. server {     listen 176.31.193.41:80;    access_log /var/log/nginx/access.yoursite.site.log;    error_log /var/log/nginx/error.yoursite.site.log;    server_name yoursite.site www.yoursite.site;    root /public_html/yoursite.site;     return 301 https://www.yoursite.site$request_uri; sudo nano X.X_ssl; ADD: if ($host !~ ^www\.) {             rewrite ^ https://www.$host$request_uri permanent;          } […]

How to sort NextGEN galleries alphabetically for the dropdown in the Add Gallery / Images page

Use an FTP client to navigate to <site_root>/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/templates/upload_images.php Add the following code to the very top Main code snippet Code snippet in context

Comprehensive Debugging

//Report all types of errors. define(‘WP_DEBUG’, true); //Don’t show errors to site visitors. define(‘WP_DEBUG_DISPLAY’, false); //Put logs in wp-content. CAUTION: Hacking hazard define(‘WP_DEBUG_LOG’, true);     @ini_set(‘display_errors’,’On’); @ini_set(‘error_reporting’, E_ALL ); @ini_set ( ‘SCRIPT_DEBUG’, true ); @ini_set(‘log_errors’, ‘On’);   @ini_set(‘error_log’, ‘/home/sage/xhub.fun.log’);     // Simple, elegant /////////////////////////////////////////////////// // TODO: Explain “Simple, elegant” // TODO: Define top […]