URL Redirecting Script Rumi, October 12, 2008October 12, 2008 Meta Refresh URL Redirect Meta Refresh URL Redirect is an example of a meta refresh URL redirect. The code is quite simple. <meta http-equiv=”refresh” content=”8;url=http://www.seocompany.ca/index.html” /> Meta tag refresh is known to not be very search engine friendly and is consider spammy because of its misuse. If you keep it up around 8 seconds it is said it is ok. This method displays the new page that the refresh points to.PHP URL Redirect PHP URL Redirect is just like it says. The code for this script is short and simple. The following code goes at the top of the page. <?php header(“location:http://www.seocompany.ca/index.html”); exit; ?> This script shows the new page that the refresh points to. 301 ASP URL Redirect RewriteRule ^(.*)$ http://www.seocompany.ca/$1 [R=301,L] ASP URL Redirect does the redirect quite quickly. The code goes at the top of the page. <%@ Language=VBScript %> <% Response.Status=”301 Moved Permanently” Response.AddHeader “Location”, “http://www.seocompany.ca/index.html” %> This code also takes you to the redirected page. Coldfusion URL Redirect Coldfusion URL Redirect is about as short as they get. <cflocation url=”http://www.seocompany.ca”> This code also takes you to the redirected page. Javascrip URL Redirect Javascript URL Redirect shows this script in action. Again this solution only takes one line of code. <script type=”text/javascript”>document.location.href=’www.seocompany.ca/index.html'</script> This code also sends you to the redirected url. shtml URL Redirect shtml URL Redirect displays the same code but don’t redirect you to the page like the other processes. <!–#include virtual=”http://www.seocompany.ca/index.html”–> Related Scripts
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
Zimbra Let’s Encrypt auto-renew SSL January 26, 2023 Required for this script to work is certbot package installed on email server and sudo rights to add script in crontab. You can add script in crontab at a weekly run like this: 0 0 * * 0 root /path_to_script. #!/bin/bash #Set domain for renew (in format openthreat.ro) DOMAIN=”” certbot… Read More
Auto-centering Popup Window July 8, 2011July 8, 2011 Step 1: Insert the below inside the <head> section of your page: <script language="javascript"> /* Auto center window script- Eric King (http://redrival.com/eak/index.shtml) Permission granted to Dynamic Drive to feature script in archive For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com */ var win =… Read More