Redirect site using a .htaccess file Rumi, November 6, 2011 Instructions Create an empty text file using a text editor such as notepad, and save it as htaccess.txt. Edit the contents of the file. Check the following examples: Point an entire site to a different URL, such as domain.net redirected to domain.com: # This allows you to redirect your entire website to any other domain Redirect 301 / http://example.com/ Redirect index.html to a specific subfolder: # This allows you to redirect index.html to a specific subfolder Redirect /index.html http://example.com/newdirectory/ Redirect an old file to a new file path: # Redirect old file path to new file path Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html Redirect to a specific index page: # Provide Specific Index Page (Set the default handler) DirectoryIndex index.html Related Scripts Apache
Horizontal CSS menu August 16, 2009 1. Let’s begin! Create a new HTML document and save it as cssmenu.html. Although is better to put the CSS code in a external style sheet, in this tutorial we will put the whole CSS code in the HTML file to be easier to follow by readers. Related Read More
Nagios- Memory Check Plugin January 6, 2013January 6, 2013 Dave the below code as check_mem.sh using nano and chmod it to +x. (file to be saved inside nagios libexec- such as /usr/local/nagios/libexec/check_mem.sh Related Read More
Very Generic Linux Service Watchdog script June 16, 2016 A strong watchdog script- indeed! #!/bin/bash # # watchdog # # Run as a cron job to keep an eye on what_to_monitor which should always # be running. Restart what_to_monitor and send notification as needed. # # This needs to be run as root or a user that can start… Read More