NixUser | Unix User | Linux User | NixUser


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

Postfix flush Mail Queue (and) by Sender

In Postfix, enter the following command to flush the email queue: $ postfix flush Or you can use: $ postfix -f To see the mail queue, enter: $ mailq Or $ postqueue -p To remove all mail from the queue: $ postsuper -d ALL To remove all deferred emails in queue: $ postsuper -d ALL More

Internet Download Manager (IDM) for Ubuntu

There are many IDMs available for Ubuntu like Gwget, Axel, Steadyflow, Jdownloader, Aria2, etc. uGet for Linux is a real alternative for Internet Download Manager. uGet is a multi-platform GTK3 download manager that supports resuming downloads, comes with categories support, can download torrent and metalink files through aria2, a powerful command line download tool that’s More

Password protect directory or folder in wordpress installed directory

How to password protect a directory or files within WordPress installed directory? To do this, you need to create a file named 401.html and edit the .htaccess file in the password protected directory. Create the 401.html file in a separate directory (or in root directory) than the password protected directory. In this case I created More

access a folder/directory in wordpress

Suppose you have installed wordpress in root directory of your account. There is a folder/directory, say docs in the same (root) directory. You will not be able to access this folder like url. The wordpress will redirect to a 404 page instead. To override the wordpress rewrite rules, add the following line to .htaccess More

Previous Posts