NixUser | Unix User | Linux User | NixUser


WordPress Password Protection and mod_rewrite error

  I have added the following to my .htaccess file (password protected) to limit the access to wordpress login pages.   ErrorDocument 401 “Unauthorized Access” ErrorDocument 403 “Forbidden” <FilesMatch “wp-login.php”> AuthName “Authorized Only” AuthType Basic AuthUserFile /home/user/.htpasswd require valid-user </FilesMatch>   But after the change, the page won’t load, it gave out a infinite loop More

force https 301 redirect using htaccess

  To force your website with SSL using htaccess and mod_rewrite, use the following rule in the website’s .htaccess. RewriteEngine On RewriteCond %{HTTP_HOST} ^yourwebsite\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$$1 [R=301,L] If it’s a subdomain, use this. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} sub RewriteRule ^(.*)$$1 [R=301,L] Note: Replace with the More

Install fann PHP extension

To install fann extension in php, make sure that libfann (development version) is installed on your system. If it is not installed, you can install it using yum or apt-get depending on your distro. $ yum install fann-devel Or in Ubnuntu: $ sudo apt-get install libfann-dev This extension is available on PECL. The installation is More

How to Archive Emails in Roundcube

You can make use of the Archive plugin in Roundcube to archive old emails. If Roundcube has the Archive plugin installed, a button labelled Archive will appear in the toolbar. This button moves the selected message(s) to the archive folder with one single click. You can configure how the archive folder is organized and divided More

Previous Posts