NixUser

NixUser.com | Unix User | Linux User | NixUser

rename files with extensions .pdf to .PDF

  How to rename pdf file extensions?   I had pdf files on my server with extension .pdf and I wanted to rename the extension to PDF. Use the following one-liner to do this. for f in *.pdf; do mv $f `basename $f .pdf`.PDF; done; You are done.

Filter rule to discard emails with .exe attachment in cPanel

  You can add custom email filters to discard email attachments in cPanel for a particular user. Use Global Filters option to add it for the whole account. For this, use Email Filters in cPanel >> Email Tab.   For example, you want to delete emails with .exe attachments.   In cPanel, go to Email More

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

Previous Posts Next posts