.htacces tweaks, WordPress Tweaks
To be able to redirect all links from the old domain to new one you need to edit .htaccess file on the old domain like this: RewriteEngine on RewriteCond %{HTTP_HOST} ^old-domain.info [NC,OR] RewriteCond %{HTTP_HOST} ^www.old-domain.info[NC] RewriteRule ^(.*)$...
Hacking WordPress, WordPress Tweaks
To be able to change session expiration time in WordPress next lines of code must be placed in function.php. Time format: if you want to set expiration tome to 60 seconds set $expiration = 60, or 2 hours and 12 minutes set $expiration = 2*00*12. ...
Hacking WordPress, WordPress Tweaks
Add this code into functions.php in order to register your custom sidebar: function my_custom_sidebar() { register_sidebar( array ( ‘name’ => __( ‘Custom’, ‘your-theme-domain’ ), ‘id’ =>...
Optimize WordPress, SSL serificats, WordPress Tweaks
The great way to check is you page SSL secured Source: Why No Padlock? – Why is my SSL web page insecure? Find the culprit! What Is an SSL Certificate and Why You Should Care
Optimize WordPress, WordPress Tweaks
The example of the code in example in autoptimize/autoptimize_helper.php: add_filter(‘autoptimize_filter_noptimize’,’my_ao_noptimize’,10,0); function my_ao_noptimize() { if...
.htacces tweaks, SSL serificats, WordPress Tweaks
To force SSL / https:// on domain add those code to the .htaccess file: RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don’t put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule .*...