Mohammed has written 63 articles

Quick guide for .htaccess redirects

Redirect HTTPS traffic to HTTP: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Redirect HTTP traffic to HTTPS: RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] Redirect both HTTPS and HTTP to HTTPS without www: RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www. [NC] RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC] RewriteRule ^(.*)$ https://google.com/$1 [R=301,L] Redirect both HTTPS and…

Mounting a Software Raid drive attached with USB in Linux rescue

1). Remake the raid mount points: 2). mount /dev/md10 /mnt/backup 3). Check for the USB volumes: vgdisplay lvscan 4). Use the UUID to rename the volume: vgrename TdDMzM-Q05M-MLaO-ylQb-tBkn-Xqpo-jgQ5vX usb1 5). Activate it:vgchange -a y usb1 6). Mount everything on /dev/usb1 like normal:mount /dev/usb1/home /mnt/backup/homemount /dev/usb1/usr /mnt/backup/usrmount /dev/usb1/var /mnt/backup/var

Installing .NET Framework 3.5

If during normal installation of .NET 3.5 an error is shown stating that the ISO or DVD is required follow the steps below to workaround this to get .NET 3.5 installed: 1.) Start the Local Group Policy Editor or Group Policy Management Console.2.) Expand Computer Configuration, expand Administrative Templates, and then select System.3.) Open the…

Remote Desktop Protocol (RDP): An Internal error has occurred

RDP gives the message Internal Error has occurred when attempting to connect to 1 server (2012 R2) from any Windows computer in the network. Step I: On the server in question go to C:\Program Data\Microsoft\Crypto\RSA Step II: Rename the MachineKeys folder in that directory. Step III: Restart the Remote Desktop Services and Remote Desktop Configuration…